Skip to content
Snippets Groups Projects
Kornel's avatar
closed issue #9 "Dunce freezes on disconnected network drives" at Kornel / dunce
Kornel's avatar
commented on issue #9 "Dunce freezes on disconnected network drives" at Kornel / dunce

If you use dunce::simplified(path) it will strip UNC only by manipulating the string, without accessing the disk, or even calling any Windows APIs....

Stéphane Champailler's avatar
commented on issue #9 "Dunce freezes on disconnected network drives" at Kornel / dunce

Note that if I try to open such drive for example from my emacs editor, the same freeze happens, just as long.

Stéphane Champailler's avatar
opened issue #9 "Dunce freezes on disconnected network drives" at Kornel / dunce
Kornel's avatar
pushed to branch master at Kornel / dunce
Kornel's avatar
pushed to branch master at Kornel / dunce
Kornel's avatar
closed issue #5 "Support for network paths like `\\\\?\\UNC\\Mac\\Home\\dev\\github.com\\`…" at Kornel / dunce
Kornel's avatar
closed issue #6 "Will dunce convert volume paths to canonical paths in windows" at Kornel / dunce
Kornel's avatar
commented on issue #6 "Will dunce convert volume paths to canonical paths in windows" at Kornel / dunce

No, this is not supported. This crate only trims \\C:\ paths.

Kornel's avatar
closed issue #7 "FR: `is_simplified` function" at Kornel / dunce
gtr-0000's avatar
closed issue #8 "Failed to canonicalize a path mounted by cppcryptfs/dokan" at Kornel / dunce
gtr-0000's avatar
commented on issue #8 "Failed to canonicalize a path mounted by cppcryptfs/dokan" at Kornel / dunce

It is likely a issue of the standard library since std::fs::canonicalize also failed to process such a mounted path.

gtr-0000's avatar
opened issue #8 "Failed to canonicalize a path mounted by cppcryptfs/dokan" at Kornel / dunce
Kornel's avatar
pushed new tag v1.0.5 at Kornel / dunce
Kornel's avatar
pushed to branch master at Kornel / dunce
Kornel's avatar
pushed to branch master at Kornel / dunce
Ilya Grigoriev's avatar
commented on issue #7 "FR: `is_simplified` function" at Kornel / dunce

Good point, this actually helps a lot! As you might be able to tell, I'm not super-familiar with UNC paths....

Kornel's avatar
commented on issue #7 "FR: `is_simplified` function" at Kornel / dunce

I think you could check if the path still starts with double slash.

Ilya Grigoriev's avatar
opened issue #7 "FR: `is_simplified` function" at Kornel / dunce
Arun Sivaramakrishnan's avatar
opened issue #6 "Will dunce convert volume paths to canonical paths in windows" at Kornel / dunce