public static string[] GetEntries(string pPath, out FileSystemError pError) { FileSystem fileSystem = GetFileSystem(pPath); if (fileSystem == null) { pError = FileSystemError.InvalidFileSystem; return null; } return fileSystem.GetEntries(pPath, out pError); }
public static bool DirectoryExists(string pPath, out FileSystemError pError) { FileSystem fileSystem = GetFileSystem(pPath); if (fileSystem == null) { pError = FileSystemError.InvalidFileSystem; return false; } return fileSystem.DirectoryExists(pPath, out pError); }
public Result Check(Func <bool> condition, FileSystemError errorType) { return(!IsSuccessful() || condition() ? this : Fail(errorType)); }
public void ready(FileSystemError error, object content) { indexPageData = content.ToString(); Global.Require<Http>("http").CreateServer(handler).Listen(80); }
public abstract bool DeleteDirectory(string pPath, out FileSystemError pError);
public abstract bool DeleteFile(string pPath, out FileSystemError pError);
public abstract bool MoveFile(string pSourcePath, FileSystem pDestinationFileSystem, string pDestinationPath, out FileSystemError pError);
public abstract string[] GetEntries(string pPath, out FileSystemError pError);
public abstract bool DirectoryExists(string pPath, out FileSystemError pError);
public static bool CopyFile(string pSourcePath, string pDestinationPath, out FileSystemError pError) { FileSystem sourceFileSystem = GetFileSystem(pSourcePath); FileSystem destinationFileSystem = GetFileSystem(pDestinationPath); if (sourceFileSystem == null || destinationFileSystem == null) { pError = FileSystemError.InvalidFileSystem; return false; } return sourceFileSystem.CopyFile(pSourcePath, destinationFileSystem, pDestinationPath, out pError); }
public static bool DeleteFile(string pPath, out FileSystemError pError) { FileSystem fileSystem = GetFileSystem(pPath); if (fileSystem == null) { pError = FileSystemError.InvalidFileSystem; return false; } return fileSystem.DeleteFile(pPath, out pError); }