DeleteDirectory() public method

public DeleteDirectory ( FilePath localPath, bool force, MonoDevelop.Core.ProgressMonitor monitor, bool keepLocal = true ) : void
localPath FilePath
force bool
monitor MonoDevelop.Core.ProgressMonitor
keepLocal bool
return void
Ejemplo n.º 1
0
        public override void MoveDirectory(FilePath sourcePath, FilePath destPath)
        {
            IProgressMonitor monitor = new NullProgressMonitor();

            Repository srcRepo = GetRepository(sourcePath);
            Repository dstRepo = GetRepository(destPath);

            if (dstRepo.CanMoveFilesFrom(srcRepo, sourcePath, destPath))
            {
                srcRepo.MoveDirectory(sourcePath, destPath, true, monitor);
            }
            else
            {
                CopyDirectory(sourcePath, destPath);
                srcRepo.DeleteDirectory(sourcePath, true, monitor);
            }
        }
Ejemplo n.º 2
0
        public override void DeleteDirectory(FilePath path)
        {
            Repository repo = GetRepository(path);

            repo.DeleteDirectory(path, true, new ProgressMonitor(), false);
        }
        public override void DeleteDirectory(string path)
        {
            Repository repo = GetRepository(path);

            repo.DeleteDirectory(path, true, new NullProgressMonitor());
        }