public static FTPFile CreateFromPath(string path, int accountId) { FTPFile file = new FTPFile(accountId); file.fullName = path; file.name = PathExt.GetName(path); return(file); }