How do I use this against a local directory?
See original GitHub issueLibrary is great - documentation is …spotty at best…
I’m trying to use Stowage against a local directory for development, and Azure Blob container for production. But I can’t even get the local disk part to work…
I have tried this code (and a great many variations of it - with or without trailing backslash, with or without file pattern, using full path in the .Of.LocalDisk() call or only when doing .Ls()) - so far, without any success:
using (IFileStorage fs = Files.Of.LocalDisk(@"D:\"))
{
var entries = await fs.Ls(@"\projects\mailtemplates", false);
}
I keep getting this error:
ArgumentException: path needs to be a folder (Parameter ‘path’)
What am I doing wrong? I would like to get all the files (or preferably: all files matching a certain pattern) from this folder …
Issue Analytics
- State:
- Created 2 months ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
ssh - Difficulties comparing local directory and remote ...
I want to compare a local folder against a remote folder and write an "alert" to a file if they are not the...
Read more >File path formats on Windows systems
This topic discusses the formats for file paths that you can use on Windows ... Otherwise, the path is relative to the current...
Read more >Is it OK to use local. in an active directory domain name
No, that's fine. The warning is against using domain.local as your AD domain name. local.domain.tld is perfectly acceptable.
Read more >Path Traversal
A path traversal attack (also known as directory traversal) aims to access files and directories that are stored outside the web root folder....
Read more >About local directory integration
Integrating your local directory allows you to use existing credentials from your own systems instead of creating accounts via the administration interface, ...
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
Folder ends with slash. You are trying to list a file hence your very first error.
Still the same …