BetterCms.Core.Services.Storage.FileSystemStorageService.RemoveFolder C# (CSharp) Method

RemoveFolder() public method

public RemoveFolder ( Uri uri ) : void
uri System.Uri
return void
        public void RemoveFolder(Uri uri)
        {
            CheckUri(uri);
            
            string pathRoot = Path.GetDirectoryName(uri.LocalPath);
            if (pathRoot != null && Directory.Exists(pathRoot))
            {
                Directory.Delete(pathRoot);
            }
        }