alina 🌸A
Denoβ€’2y agoβ€’
1 reply
alina 🌸

get file path from FsFile

given a Deno.FsFile, is there a way to get its path (or at least a filename)?
i can't really see a way to do that judging by the typings

e.g.
const file = await Deno.open('file.txt')
const fileName = file.??? // == "/path/to/file.txt" or at least "file.txt"
Was this page helpful?