/// <summary> /// Creates a Windows user file system. /// </summary> /// <param name="license">A license string.</param> /// <param name="path">A root folder of your user file system. Your file system tree will be located under this folder.</param> /// <param name="log">Logger.</param> internal VfsEngine(string license, string path, VirtualDriveBase virtualDrive, ILog log) : base(license, path) { logger = new Logger("File System Engine", log); this.virtualDrive = virtualDrive; // We want our file system to run regardless of any errors. // If any request to file system fails in user code or in Engine itself we continue processing. ThrowExceptions = false; StateChanged += Engine_StateChanged; Error += Engine_Error; Message += Engine_Message; }
/// <summary> /// Creates instance of this class. /// </summary> /// <param name="userFileSystemPath">File or folder path in user file system.</param> /// <param name="logger">Logger.</param> public VfsFileSystemItem(string userFileSystemPath, ILogger logger, VfsEngine engine, VirtualDriveBase virtualDrive) { if (string.IsNullOrEmpty(userFileSystemPath)) { throw new ArgumentNullException("userFileSystemPath"); } if (logger == null) { throw new ArgumentNullException("logger"); } UserFileSystemPath = userFileSystemPath; Logger = logger; Engine = engine; VirtualDrive = virtualDrive; }
public VfsFolder(string path, ILogger logger, VfsEngine engine, VirtualDriveBase userEngine) : base(path, logger, engine, userEngine) { }