You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of filepath.Separator in ext4/fs.go leads to the error "panic: open /<filename redacted>: invalid argument" when running on Windows (since its separator is \ instead of /)
I suggest changing instances of filepath.Separator to "/" (or vice versa; although / is a forbidden character anyway so it should be safe to just hardcode to /)
The text was updated successfully, but these errors were encountered:
SoftPoison
added a commit
to SoftPoison/go-ext4-filesystem
that referenced
this issue
Feb 4, 2023
This fixes an inconsistency when the library is used on Windows.
On Linux, the file path separator is "/", but on Windows it is "\". As
"/" is already hardcoded elsewhere, and "/" is a forbidden character in
file names and folders on Windows already, all instances have been
replaced with "/".
Closesmasahiro331#2
This fixes an inconsistency when the library is used on Windows.
On Linux, the file path separator is "/", but on Windows it is "\". As
"/" is already hardcoded elsewhere, and "/" is a forbidden character in
file names and folders on Windows already, all instances have been
replaced with "/".
Closes#2
The use of
filepath.Separator
inext4/fs.go
leads to the error "panic: open /<filename redacted>: invalid argument" when running on Windows (since its separator is\
instead of/
)I suggest changing instances of
filepath.Separator
to"/"
(or vice versa; although/
is a forbidden character anyway so it should be safe to just hardcode to/
)The text was updated successfully, but these errors were encountered: