public override void MoveFile(string sourceFilePath, IFileSystem targetFileSystem, string targetFilePath) { if (targetFileSystem.IsLocal) { LongPathFile.Move(sourceFilePath, targetFilePath); } else { File.Move(GetFullPath(sourceFilePath), targetFileSystem.GetFullPath(targetFilePath)); } }
public void Move(string originalFilePath, string newFilePath) { AssertAllowed(originalFilePath); AssertAllowed(newFilePath); #if !MONO var mTx = CurrentTransaction(); if (mTx.HasValue) { ((IFileAdapter)mTx.Value).Move(originalFilePath, newFilePath); return; } #endif LongPathFile.Move(originalFilePath, newFilePath); }
void IDirectoryAdapter.Move(string originalPath, string newPath, bool overwrite) { AssertAllowed(originalPath); AssertAllowed(newPath); #if !MONO var mTx = CurrentTransaction(); if (mTx.HasValue) { ((IDirectoryAdapter)mTx.Value).Move(originalPath, newPath); return; } #endif LongPathFile.Move(originalPath, newPath); }
public void MoveTo(string destFileName) { LongPathFile.Move(this.NormalizedPath, destFileName); }
public override FileSystemItem MoveTo(FileSystemItem item) { LongPathFile.Move(Path, item.Path); return(item); }