Models.FileSystem.File Class
Namespace: Nucleus.Abstractions.Models.FileSystem
Assembly: Nucleus.Abstractions.dll
Represents a file stored in a file system.
Properties
Size
Property
The size of the file, in bytes.
Height
Property
The height of an image file, in pixels.
Width
Property
The width of an image file, in pixels.
DirectUrl
Property
A saved direct url to the file, for cloud file system providers.
DirectUrlExpiry
Property
Date/time that the DirectUrl expires.
Fields
URN
Field
URN for the file entity, used by permission types and scopes.
Methods
ClearSelection
ClearSelection ()
Clear the file selection, leaving the provider and parent folder selection intact.
CopyDatabaseValuesTo
(File) Method
CopyDatabaseValuesTo (File target)
Data for file items is retrieved from the database, and from the file system. This function "merges" a File object which has been retrieved from the file system with one from the database by copying the fields that are only present in the database (that is, can't be retrieved from the file system).