implements the file moves ui

This commit is contained in:
Paul Schneider 2019-09-08 05:17:21 +01:00
commit 5692478b77
7 changed files with 351 additions and 172 deletions

View file

@ -60,6 +60,12 @@ namespace Yavsc.Helpers
UserDirectoryInfo di = new UserDirectoryInfo(UserFilesDirName, userName, subdir);
return di;
}
public static bool IsRegularFile(string userName, string subdir)
{
FileInfo fi = new FileInfo( Path.Combine(Path.Combine(UserFilesDirName, userName), subdir));
return fi.Exists;
}
// Server side only supports POSIX file systems
public const char RemoteDirectorySeparator = '/';

View file

@ -1,7 +1,18 @@
namespace Yavsc.Helpers
{
public enum ErrorCode {
NotFound,
InternalError,
DestExists,
InvalidRequest
}
public class FsOperationInfo {
public bool Done { get; set; } = false;
public string Error { get; set; }
public ErrorCode ErrorCode { get; set; }
public string ErrorMessage { get; set; }
}
}