Class LocalFileSystem
Implements Azos.IO.FileSystem support around local machine file system.
This particular implementation uses traditional System.IO.* and does not support
transactions, versioning, metadata and Azos security
Inheritance
System.Object
LocalFileSystem
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public sealed class LocalFileSystem : FileSystem, IFileSystemImplementation, IFileSystem, IApplicationComponent, INamed, IConfigurable, IDisposable
Constructors
LocalFileSystem(IApplicationComponent)
Declaration
public LocalFileSystem(IApplicationComponent director)
Parameters
LocalFileSystem(IApplication)
Declaration
public LocalFileSystem(IApplication app)
Parameters
Properties
ComponentCommonName
Declaration
public override string ComponentCommonName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
GeneralCapabilities
Declaration
public override IFileSystemCapabilities GeneralCapabilities { get; }
Property Value
Overrides
InstanceCapabilities
Declaration
public override IFileSystemCapabilities InstanceCapabilities { get; }
Property Value
Overrides
Methods
DoCreateDirectory(FileSystemDirectory, String)
Declaration
protected override FileSystemDirectory DoCreateDirectory(FileSystemDirectory dir, string name)
Parameters
Returns
Overrides
DoCreateFile(FileSystemDirectory, String, Int32)
Declaration
protected override FileSystemFile DoCreateFile(FileSystemDirectory dir, string name, int size)
Parameters
Returns
Overrides
DoCreateFile(FileSystemDirectory, String, String, Boolean)
Declaration
protected override FileSystemFile DoCreateFile(FileSystemDirectory dir, string name, string localFile, bool readOnly)
Parameters
Type |
Name |
Description |
FileSystemDirectory |
dir |
|
System.String |
name |
|
System.String |
localFile |
|
System.Boolean |
readOnly |
|
Returns
Overrides
DoDeleteItem(FileSystemSessionItem)
Declaration
protected override void DoDeleteItem(FileSystemSessionItem item)
Parameters
Overrides
DoGetCreationTimestamp(FileSystemSessionItem)
Declaration
protected override DateTime? DoGetCreationTimestamp(FileSystemSessionItem item)
Parameters
Returns
Type |
Description |
System.Nullable<System.DateTime> |
|
Overrides
DoGetFileNames(FileSystemDirectory, Boolean)
Declaration
protected override IEnumerable<string> DoGetFileNames(FileSystemDirectory directory, bool recursive)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
DoGetFileStream(FileSystemFile, Action<FileSystemStream>)
Declaration
protected override FileSystemStream DoGetFileStream(FileSystemFile file, Action<FileSystemStream> disposeAction)
Parameters
Returns
Overrides
DoGetItemSize(FileSystemSessionItem)
Declaration
protected override ulong DoGetItemSize(FileSystemSessionItem item)
Parameters
Returns
Type |
Description |
System.UInt64 |
|
Overrides
DoGetLastAccessTimestamp(FileSystemSessionItem)
Declaration
protected override DateTime? DoGetLastAccessTimestamp(FileSystemSessionItem item)
Parameters
Returns
Type |
Description |
System.Nullable<System.DateTime> |
|
Overrides
Declaration
protected override FileSystemStream DoGetMetadataStream(FileSystemSessionItem item, Action<FileSystemStream> disposeAction)
Parameters
Returns
Overrides
DoGetModificationTimestamp(FileSystemSessionItem)
Declaration
protected override DateTime? DoGetModificationTimestamp(FileSystemSessionItem item)
Parameters
Returns
Type |
Description |
System.Nullable<System.DateTime> |
|
Overrides
DoGetPermissionsStream(FileSystemSessionItem, Action<FileSystemStream>)
Declaration
protected override FileSystemStream DoGetPermissionsStream(FileSystemSessionItem item, Action<FileSystemStream> disposeAction)
Parameters
Returns
Overrides
DoGetReadOnly(FileSystemSessionItem)
Declaration
protected override bool DoGetReadOnly(FileSystemSessionItem item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
DoGetSubDirectoryNames(FileSystemDirectory, Boolean)
Declaration
protected override IEnumerable<string> DoGetSubDirectoryNames(FileSystemDirectory directory, bool recursive)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
DoNavigate(FileSystemSession, String)
Declaration
protected override FileSystemSessionItem DoNavigate(FileSystemSession session, string path)
Parameters
Returns
Overrides
DoRefresh(FileSystemSessionItem)
Declaration
protected override void DoRefresh(FileSystemSessionItem item)
Parameters
Overrides
DoRenameItem(FileSystemSessionItem, String)
Declaration
protected override bool DoRenameItem(FileSystemSessionItem item, string newName)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
DoSetCreationTimestamp(FileSystemSessionItem, DateTime)
Declaration
protected override void DoSetCreationTimestamp(FileSystemSessionItem item, DateTime timestamp)
Parameters
Overrides
DoSetLastAccessTimestamp(FileSystemSessionItem, DateTime)
Declaration
protected override void DoSetLastAccessTimestamp(FileSystemSessionItem item, DateTime timestamp)
Parameters
Overrides
DoSetModificationTimestamp(FileSystemSessionItem, DateTime)
Declaration
protected override void DoSetModificationTimestamp(FileSystemSessionItem item, DateTime timestamp)
Parameters
Overrides
DoSetReadOnly(FileSystemSessionItem, Boolean)
Declaration
protected override void DoSetReadOnly(FileSystemSessionItem item, bool readOnly)
Parameters
Overrides
StartSession(FileSystemSessionConnectParams)
Declaration
public override FileSystemSession StartSession(FileSystemSessionConnectParams cParams = null)
Parameters
Returns
Overrides
Implements
System.IDisposable
Extension Methods