C# Class CmisSync.Lib.Storage.FileSystem.FileInfoWrapper

Wrapper for FileInfo
Inheritance: FileSystemInfoWrapper, IFileInfo
Afficher le fichier Open project: OpenDataSpace/CmisSync Class Usage Examples

Méthodes publiques

Méthode Description
Delete ( ) : void

Deletes the file on the fs.

FileInfoWrapper ( FileInfo fileInfo ) : System

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.FileInfoWrapper class.

MoveTo ( string target ) : void

Moves to target file.

Open ( FileMode mode ) : Stream

Open the specified file.

Open ( FileMode mode, FileAccess access ) : Stream

Open the specified file with the open and access mode.

Open ( FileMode mode, FileAccess access, FileShare share ) : Stream

Open the specified file with given open, access and share mode.

Replace ( IFileInfo destinationFile, IFileInfo destinationBackupFileName, bool ignoreMetadataErrors ) : IFileInfo

Replaces the contents of a specified destinationFile with the file described by the current IFileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors.

Method Details

Delete() public méthode

Deletes the file on the fs.
public Delete ( ) : void
Résultat void

FileInfoWrapper() public méthode

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.FileInfoWrapper class.
public FileInfoWrapper ( FileInfo fileInfo ) : System
fileInfo System.IO.FileInfo File info.
Résultat System

MoveTo() public méthode

Moves to target file.
public MoveTo ( string target ) : void
target string Target file name.
Résultat void

Open() public méthode

Open the specified file.
public Open ( FileMode mode ) : Stream
mode FileMode Open mode.
Résultat Stream

Open() public méthode

Open the specified file with the open and access mode.
public Open ( FileMode mode, FileAccess access ) : Stream
mode FileMode Open mode.
access FileAccess Access Mode.
Résultat Stream

Open() public méthode

Open the specified file with given open, access and share mode.
public Open ( FileMode mode, FileAccess access, FileShare share ) : Stream
mode FileMode Open mode.
access FileAccess Access mode.
share FileShare Share mode.
Résultat Stream

Replace() public méthode

Replaces the contents of a specified destinationFile with the file described by the current IFileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors.
public Replace ( IFileInfo destinationFile, IFileInfo destinationBackupFileName, bool ignoreMetadataErrors ) : IFileInfo
destinationFile IFileInfo Destination file.
destinationBackupFileName IFileInfo Destination backup file name.
ignoreMetadataErrors bool true to ignore merge errors (such as attributes and ACLs) from the replaced file to the replacement file; otherwise false.
Résultat IFileInfo