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
For file path ./dir/file, if I already have been granted read permission for dir, how can I get the absolute path for file without needing further permissions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For file path
./dir/file
, if I already have been grantedread
permission fordir
, how can I get the absolute path forfile
without needing further permissions?Deno.realPath
andpath.resolve
requireread
for<CWD>
. Is there another way?Ex: If I use
Deno.watchFs("./dir/file", { recursive: false })
, then the paths in the events are absolute paths for the file. (Is this a leak?)Beta Was this translation helpful? Give feedback.
All reactions