public Result Move(string oldpath, string newpath, bool replace) { if (FileSystem.Directory.Exists(oldpath)) { return(PassthroughDirectory.Move(FileSystem, oldpath, newpath)); } else if (FileSystem.File.Exists(newpath)) { return(PassthroughFile.Move(FileSystem, oldpath, newpath, replace)); } else { return(new Result(ResultStatus.PathNotFound)); } }