Allow setting root folder in LocalFileSystemHandler
See original GitHub issueExapnding LocalFileSystemHandler by taking root path for admin mapping, can help reuse LocalFileSystemHandler.
A constructor taking root path & we can set overloaded to settings.FileSystemHandler
private readonly string _rootFolder;
LocalFileSystemHandler()
{
rootFolder = Directory.GetCurrentDirectory();
}
LocalFileSystemHandler(string rootFolder)
{
_rootFolder = rootFolder;
}
Changes in GetMappingFolder
public string GetMappingFolder()
{
return Path.Combine(_rootFolder, AdminMappingsFolder);
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Publish c# Project with Custom App Root folder in Visual ...
Just try this: String imagePath = Application.StartupPath+"\\images\\"+col["itemPhoto"].ToString();. Could you modify your csproj file,
Read more >Chapter 28. Setting read-only permissions for the root file ...
28.2. Configuring the root file system to mount with read-only permissions on boot ... With this procedure, the root file system is mounted...
Read more >The File System Access API: simplifying access to local files
The File System Access API allows web apps to read or save changes directly to files and folders on the user's device.
Read more >HTTP Server
One should specify sub-folder name, where objects will be registered. If sub-folder name does not starts with slash / , than top-name folder...
Read more >Solved: Dataiku Folder.get_path() is not working. Error
Solved: Hello, I am trying to get the printing of some messages to a log file (log.txt) in logfolder (a managed folder in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You can try preview: WireMock.Net.1.0.21-ci-11468
https://github.com/WireMock-Net/WireMock.Net/pull/286