Interface IFileSystem
Stipulates contract for various file system abstractions.
FileSystem abstractions are mostly useful for working with components/classes that may need to inter-operate not only with local file system
but also with distributed systems like ApacheHDFS, SVN, GIT, or Sky Cluster File System.
Azos library provides compatibility wrapper 'Azos.IO.FileSystem.Local.LocalFileSystem' for access to local machine file system
(which is based on this class and is implemented using a traditional System.IO.* set of classes).
The FileSystem abstraction supports the following concepts: versioning, transactions, metadata, security; however it does not guarantee that
every implementation is capable of providing all of these functions. Query "GeneralCapabilities" and "InstanceCapabilities" to see what functions
are supported by a particular instance.
Inherited Members
System.IDisposable.Dispose()
Assembly: Azos.dll
Syntax
public interface IFileSystem : IApplicationComponent, INamed, IDisposable
Properties
GeneralCapabilities
Returns capabilities for this file system in general
Declaration
IFileSystemCapabilities GeneralCapabilities { get; }
Property Value
InstanceCapabilities
Returns capabilities for this file system instance, that may or may not be the same as GeneralCapabilities
Declaration
IFileSystemCapabilities InstanceCapabilities { get; }
Property Value
Sessions
Returns a list of sessions
Declaration
IEnumerable<FileSystemSession> Sessions { get; }
Property Value
Methods
CombinePaths(String, String[])
Combines two or more path segments joining them using primary file system path separator
Declaration
string CombinePaths(string first, params string[] others)
Parameters
Type |
Name |
Description |
System.String |
first |
|
System.String[] |
others |
|
Returns
Type |
Description |
System.String |
|
StartSession(FileSystemSessionConnectParams)
Creates a new session for the specified user and version
Declaration
FileSystemSession StartSession(FileSystemSessionConnectParams cParams)
Parameters
Returns
Extension Methods