question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow setting root folder in LocalFileSystemHandler

See original GitHub issue

Exapnding 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:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
StefHcommented, Jun 20, 2019

You can try preview: WireMock.Net.1.0.21-ci-11468

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found