C# Class CmisSync.Lib.Storage.Database.Entities.IFileConvenienceExtenders

IFileInfo convenience extenders to check them against IMappedObjects
Datei anzeigen Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
IsContentChangedTo ( this file, IMappedObject obj, bool scanOnlyIfModificationDateDiffers = false ) : bool

Determines if file content is changed to the specified obj.

IsContentChangedTo ( this file, IMappedObject obj, byte &actualHash, bool scanOnlyIfModificationDateDiffers = false ) : bool

Determines if file content is changed to the specified obj.

Method Details

IsContentChangedTo() public static method

Determines if file content is changed to the specified obj.
public static IsContentChangedTo ( this file, IMappedObject obj, bool scanOnlyIfModificationDateDiffers = false ) : bool
file this File instance.
obj IMappedObject Object to check the file content against.
scanOnlyIfModificationDateDiffers bool If set to true content scan runs only if the modification date differs to given one.
return bool

IsContentChangedTo() public static method

Determines if file content is changed to the specified obj.
public static IsContentChangedTo ( this file, IMappedObject obj, byte &actualHash, bool scanOnlyIfModificationDateDiffers = false ) : bool
file this File instance.
obj IMappedObject Object to check the file content against.
actualHash byte Contains the hash of the local file if scanned, or null if file wasn't scanned
scanOnlyIfModificationDateDiffers bool If set to true content scan runs only if the modification date differs to given one.
return bool