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.

How do I use this against a local directory?

See original GitHub issue

Library 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:closed
  • Created 2 months ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aloneguidcommented, Jul 7, 2023

Folder ends with slash. You are trying to list a file hence your very first error.

0reactions
marcscheuner-bfhcommented, Jul 7, 2023

Change backslash \ to slash /

Still the same …

Read more comments on GitHub >

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

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