Bari.Plugins.FSRepository.Model.LocalFileSystemRepositoryAccess.Copy C# (CSharp) Method

Copy() public method

Copies a file from the FS repository to a given target directory
public Copy ( string path, IFileSystemDirectory targetDir, string targetFileName ) : void
path string Path to the file in the FS repository
targetDir IFileSystemDirectory Target directory
targetFileName string Target file name
return void
        public void Copy(string path, IFileSystemDirectory targetDir, string targetFileName)
        {
            GetDirectory(path).CopyFile(Path.GetFileName(path), targetDir, targetFileName);
        }