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);
		}
Exemple #3
0
 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);
 }
Exemple #5
0
		public abstract bool DeleteDirectory(string pPath, out FileSystemError pError);
Exemple #6
0
		public abstract bool DeleteFile(string pPath, out FileSystemError pError);
Exemple #7
0
		public abstract bool MoveFile(string pSourcePath, FileSystem pDestinationFileSystem, string pDestinationPath, out FileSystemError pError);
Exemple #8
0
		public abstract string[] GetEntries(string pPath, out FileSystemError pError);
Exemple #9
0
		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);
		}