Example #1
0
        public async Task<bool> DeleteDirectoryAsync(string applicationName, string directoryName)
        {
            if (string.Equals(directoryName, "root", StringComparison.CurrentCultureIgnoreCase) || string.Equals(directoryName, "root", StringComparison.CurrentCultureIgnoreCase))
            {
                throw new SettingsException("This directory can not be deleted");
            }

            var applicationProvider = new ApplicationProvider(_url, _apiKey, applicationName);
            return await applicationProvider.DeleteDirectory(directoryName);
        }