Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct document the Mount function #43

Open
MosheL opened this issue May 18, 2019 · 0 comments
Open

correct document the Mount function #43

MosheL opened this issue May 18, 2019 · 0 comments

Comments

@MosheL
Copy link

MosheL commented May 18, 2019

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));
					});

			}
			}) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant