public NotifyFileChanged ( FilePath path ) : void | ||
path | FilePath | |
Результат | void |
public override void CopyFile(FilePath source, FilePath dest, bool overwrite) { Repository repo = GetRepository(dest); if (!repo.RequestFileWritePermission(dest)) { throw new System.IO.IOException("Write permission denied."); } base.CopyFile(source, dest, overwrite); repo.NotifyFileChanged(dest); }
public override void CopyFile(FilePath source, FilePath dest, bool overwrite) { base.CopyFile(source, dest, overwrite); Repository repo = GetRepository(dest); if (!repo.RequestFileWritePermission(dest)) { LoggingService.LogError("Write permission denied."); return; } repo.NotifyFileChanged(dest); }
public override void CopyFile(string source, string dest, bool overwrite) { Repository repo = GetRepository(dest); if (repo.RequestFileWritePermission(dest)) { base.CopyFile(source, dest, overwrite); repo.NotifyFileChanged(dest); } else { throw new System.IO.IOException("Write permission denied"); } }