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.

All variations to return a path or parent only returns /app

See original GitHub issue

Not sure if this is a bug or because of how it create the repository, but any variations to get parent or the fullname of a fed path results in /app.

For example:

!eval Directory.GetParent(@"C:\test\something\file.exe").FullName

Or

!eval new System.IO.DirectoryInfo(@"C:\test\something\file.exe").Parent

Just wanted to know if that is right because of the repository or an actual bug.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Cisiencommented, Oct 26, 2019

Nope. It might be worth filing an issue in the dotnet repo calling out the discrepancy between Linux and windows

0reactions
nucombocommented, Oct 26, 2019

Oh wow, I didn’t expect it to be an issue at that end… I don’t have any linux to actually test it out to fill a proper issue in there, maybe this weekend I will set one up and do it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I cannot add the parent directory to *safe.directory* in Git
I was able to fix it by taking ownership of the folder containing the .git folder and all the files in it. This...
Read more >
Get parent of current directory using Python
Return Type: It returns WindowsPath.parents object. Here we are using the path module to get the parent of current directory and instead of ......
Read more >
Python Path – How to Use the Pathlib Module with Examples
It inherits manipulation from the parent class and adds input/output operations that do system calls. Pure paths in Python. Pure paths ...
Read more >
os.path — Common pathname manipulations
The return value is the concatenation of path and all members of *paths, with exactly one directory separator following each non-empty part, except...
Read more >
File path formats on Windows systems
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
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