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

            var output = File.Create(filePath);

            return(output);
        }
        public static void Copy(Stream source, string destinationFilePath, bool overwrite = true)
        {
            LocalFileSystem.CheckOverwrite(destinationFilePath, overwrite);

            using (var destination = File.OpenWrite(destinationFilePath))
            {
                source.CopyTo(destination);
            }
        }
        public static void CopyFile(string sourceFilePath, string destinationFilePath, bool overwrite = true)
        {
            LocalFileSystem.CheckOverwrite(destinationFilePath, overwrite);

            File.Copy(sourceFilePath, destinationFilePath, true);
        }