Skip to content

correct document the Mount function #43

@MosheL

Description

@MosheL

The mount function is working good (Thanks !). I could mount two or more file systems on the same server.

the problem: its not documented. I was found an example on your tests and make it working.

This need to be documented somewhere in google:

	fileSystem.Root.Task.ContinueWith(r =>
			{

				var root = r.Result;
				foreach (var fs in _options.Children)  // I was added to the configuration, a loop of Children-FileSystems
				{
					var q = root.GetChildAsync(fs.Key, new System.Threading.CancellationToken());
					q.ContinueWith(f =>
					{
						var mountpoint = q.Result as ICollection ;

						fileSystem.Mount(new System.Uri(fs.Key + "/", System.UriKind.Relative), new DotNetFileSystem(fs.Value, mountpoint, fs.Value.RootPath.TrimEnd('\\', '/'), _pathTraversalEngine, _lockManager, _propertyStoreFactory));
					});

			}
			}) ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions