Skip to content

No file system available #546

Closed Answered by clxrityy
clxrityy asked this question in Q&A
Mar 7, 2025 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

You were right about me not being hopeless at solving this myself... (That's what you said I think)

I had to go about things in a different way because:

  1. The video I'm on, as you said, is from almost exactly 4 years ago now.
  2. I am using the app router.

Workaround:

  • Removed the directory prop from <FileManager /> and useFiles
    • Rather than passing the directory with resolve(direcory, path) as the path prop to FileEntry, I am passing resolve("desktop", path).
      • This way the path always resolves to the desktop/ directory
  • Refactored getShortcut() to utilize axios to fetch the file.
  • Changed the file Main.url to Main.json so that I can extract the URL and IconFile in a way that I understand.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Lachaleca1
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by clxrityy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants