All variations to return a path or parent only returns /app
See original GitHub issueNot 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:
- Created 4 years ago
- Comments:5
Top 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 >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 FreeTop 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
Top GitHub Comments
Nope. It might be worth filing an issue in the dotnet repo calling out the discrepancy between Linux and windows
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.