alina 🌸
alina 🌸2mo ago

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"
const file = await Deno.open('file.txt')
const fileName = file.??? // == "/path/to/file.txt" or at least "file.txt"
1 Reply
crowlKats
crowlKats2mo ago
no, this sint possible; feel free to open an issue