-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MemMapFs open windows absolute path does not exist #225
Comments
In my head,
|
I agree, but I encountered the problem during testing a program I am working on. Part of the code is to process absolute filepaths and it uses these filepaths to generate files. We wanted to test that the files were created in I don't think the changes I made in #226 would change how |
There are uses for both, a generic memory-mapped file system, as well as a memory-mapped OS mock file system. We need file systems like |
I believe what OP (and I) could use is something along the lines of @nofun97 It has been three years; do you remember if or how you solved the problem? |
@MMulthaupt do you mean Lines 76 to 78 in 5c4385a
|
Doing
fs.Open("c:\\")
orafero.Walk
from root on a MemMapFs in a windows system returns the erroropen c:\: file does not exist
. During debugging, I found that thegetData()
function in MemMapFs does not support windows root as shown by the TODO in it (https://github.com/spf13/afero/blob/master/memmap.go#L38).I would like to fix it in my fork, if it is okay.
The text was updated successfully, but these errors were encountered: