-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
fd cannot search files under a RAM disk #752
Comments
Also, it does not work with virtual disks created by apps encrypting folders (e.g. cppcryptfs). |
Thank you for reporting this. This is due to this check in let current_directory = Path::new(".");
if !filesystem::is_dir(current_directory) {
return Err(anyhow!(
"Could not retrieve current directory (has it been deleted?)."
));
} We probably shouldn't check whether |
I did a quick check using the I'll try to run the |
Well, it seems that the culprit is the |
Python has run into very similar issues with ImDisk before: https://bugs.python.org/issue26658 I'm guessing that |
Having the same issue. I'm using |
This fixes a bug on Windows where `fd` could not be used on ram disks and encrypted folders. closes #752
I took another look at this. Related issues on the Rust tracker: rust-lang/rust#59117 (and rust-lang/rust#74327) We might be able to use the |
This fixes a bug on Windows where `fd` could not be used on ram disks and encrypted folders. closes #752
This fixes a bug on Windows where `fd` could not be used on ram disks and encrypted folders. closes #752
Describe the bug you encountered:
when performing search (e.g.
fd somepattern
) under a ramdisk (using ImDisk as RAM disk utility), the following error is returned immediately:[fd error] Cannot retrieve current directory (has it been deleted?)
Instead, the builtin windows prompt command:
dir /S /P somepattern
works correctly.
What version of
fd
are you using?8.2.1
Which operating system / distribution are you on?
Windows 8.1 x64
The text was updated successfully, but these errors were encountered: