public Stream CreateFile(string filePath, bool overwrite = true)
        {
            var output = LocalFileSystem.CreateFile(filePath, overwrite);

            return(output);
        }
 public void DeleteDirectory(string directoryPath, bool recursive = true)
 {
     LocalFileSystem.DeleteDirectory(directoryPath, recursive);
 }
 public void CopyFile(string sourceFilePath, string destinationFilePath, bool overwrite = true)
 {
     LocalFileSystem.CopyFile(sourceFilePath, destinationFilePath, overwrite);
 }
 public void CreateDirectory(string directoryPath)
 {
     LocalFileSystem.CreateDirectory(directoryPath);
 }
        public static void MoveFile(string sourceFilePath, string destinationFilePath, bool overwrite = true)
        {
            LocalFileSystem.CheckOverwrite(destinationFilePath, overwrite);

            File.Move(sourceFilePath, destinationFilePath);
        }
 public void CopyDirectory(string sourceDirectoryPath, string destinationDirectoryPath)
 {
     LocalFileSystem.CopyDirectory(sourceDirectoryPath, destinationDirectoryPath);
 }
 public void ChangePermissions(string path, short mode)
 {
     LocalFileSystem.ChangePermissions(path, mode);
 }
        public IEnumerable <FileSystemEntry> EnumerateFileSystemEntries(string directoryPath, bool recursive = false)
        {
            var output = LocalFileSystem.EnumerateFileSystemEntries(this.StringlyTypedPathOperator, directoryPath, recursive);

            return(output);
        }
        public DateTime GetFileLastModifiedTimeUTC(string path)
        {
            var output = LocalFileSystem.GetFileLastModifiedTimeUTC(path);

            return(output);
        }
        public Stream ReadFile(string filePath)
        {
            var output = LocalFileSystem.ReadFile(filePath);

            return(output);
        }
        public FileSystemEntryType GetFileSystemEntryType(string path)
        {
            var output = LocalFileSystem.GetFileSystemEntryType(path);

            return(output);
        }
        public bool ExistsFile(string filePath)
        {
            var output = LocalFileSystem.ExistsFile(filePath);

            return(output);
        }
 public static void CreateDirectoryOnlyIfNotExists(string directoryPath)
 {
     LocalFileSystem.CreateDirectory(directoryPath);
 }
 public void DeleteFile(string filePath)
 {
     LocalFileSystem.DeleteFile(filePath);
 }
 public void Copy(Stream source, string destinationFilePath, bool overwrite = true)
 {
     LocalFileSystem.Copy(source, destinationFilePath, overwrite);
 }
        public IEnumerable <string> EnumerateFiles(string directoryPath)
        {
            var output = LocalFileSystem.EnumerateFiles(directoryPath);

            return(output);
        }
 public void Copy(string sourceFilePath, Stream destination)
 {
     LocalFileSystem.Copy(sourceFilePath, destination);
 }
        public bool ExistsDirectory(string directoryPath)
        {
            var output = LocalFileSystem.ExistsDirectory(directoryPath);

            return(output);
        }
 public static void DeleteDirectoryOnlyIfExists(string directoryPath, bool recursive = true)
 {
     LocalFileSystem.DeleteDirectory(directoryPath, recursive); // Idempotent, ok.
 }