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