We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is not always, but under some unknown conditions:
x = fs::dir_create(tempfile()) parent = fs::path_dir(x) abs_ln = fs::link_create(x, fs::path(parent, "abs_ln")) fs::link_exists(abs_ln) #> /var/folders/vc/yv3lbg614jv_f7r5046k8yxm0000gn/T/RtmpLxUH0e/abs_ln #> TRUE fs::dir_exists(abs_ln) #> /var/folders/vc/yv3lbg614jv_f7r5046k8yxm0000gn/T/RtmpLxUH0e/abs_ln #> TRUE rel_ln = fs::link_create(fs::path_file(x), fs::path(parent, "rel_ln")) fs::link_exists(rel_ln) #> /var/folders/vc/yv3lbg614jv_f7r5046k8yxm0000gn/T/RtmpLxUH0e/rel_ln #> TRUE fs::dir_exists(rel_ln) #> /var/folders/vc/yv3lbg614jv_f7r5046k8yxm0000gn/T/RtmpLxUH0e/rel_ln #> FALSE setwd(parent) fs::dir_create("path") rel_ln2 = fs::link_create("path", "new_path") fs::link_exists("new_path") #> new_path #> TRUE fs::dir_exists("new_path") #> new_path #> TRUE cat(system2("lsd", c("--tree", parent), stdout = TRUE), sep = "\n") #> RtmpLxUH0e/ #> ├── abs_ln@ ⇒ /var/folders/vc/yv3lbg614jv_f7r5046k8yxm0000gn/T/RtmpLxUH0e/file772215100b6f #> ├── file772215100b6f/ #> ├── new_path@ ⇒ path #> ├── path/ #> └── rel_ln@ ⇒ file772215100b6f
Created on 2022-09-18 with reprex v2.0.2
The text was updated successfully, but these errors were encountered:
I guess the following part needs a fix similar to #280:
fs/R/access.R
Line 47 in 238032f
Sorry, something went wrong.
Realize relative symlinks properly in dir_exists()
31a6370
Fixes r-lib#395
Successfully merging a pull request may close this issue.
It is not always, but under some unknown conditions:
Created on 2022-09-18 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: