C# Class Bari.Plugins.FSRepository.Model.LocalFileSystemRepositoryAccess

Inheritance: IFileSystemRepositoryAccess
Show file Open project: vigoo/bari

Public Methods

Method Description
Copy ( string path, IFileSystemDirectory targetDir, string targetFileName ) : void

Copies a file from the FS repository to a given target directory

Exists ( string path ) : bool

Checks if the repository contains a valid file in the given path

GetDirectory ( string path ) : IFileSystemDirectory

Gets the directory for a given path (the path's file name part is not used)

ListFiles ( string path ) : IEnumerable

Lists all the files in the given directory inside the FS repository

LocalFileSystemRepositoryAccess ( [ suiteRoot ) : System.Collections.Generic

Method Details

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

Exists() public method

Checks if the repository contains a valid file in the given path
public Exists ( string path ) : bool
path string Path to the file
return bool

GetDirectory() public method

Gets the directory for a given path (the path's file name part is not used)
public GetDirectory ( string path ) : IFileSystemDirectory
path string Path to the file
return IFileSystemDirectory

ListFiles() public method

Lists all the files in the given directory inside the FS repository
public ListFiles ( string path ) : IEnumerable
path string Directory path
return IEnumerable

LocalFileSystemRepositoryAccess() public method

public LocalFileSystemRepositoryAccess ( [ suiteRoot ) : System.Collections.Generic
suiteRoot [
return System.Collections.Generic