question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Is it possible to read the entire file-system from the executable?

See original GitHub issue

Is this a BUG or a FEATURE REQUEST?: A question, maybe a bug.

Hi there,

I am using nexe to bundle my application into a “single” binary. ❤️

I have managed to get it running, but I cannot see/list the entire file-system correctly from my application started from the binary. Is this a known limitation, a possible bug or I have messed up something with the configuration.

I have seen the documentation for the nexe-fs, but freely speaking, it was not clear to me how to use it, if I have to use it at all.

My repository is here: https://github.com/kittaakos/theia-nexe If you want to try it in Gitpod: https://gitpod.io/#https://github.com/kittaakos/theia-nexe Or you can get an executable for Linux and macOS from here: https://dev.azure.com/kittaakos/theia-sandbox/_build/results?buildId=230

Thank you!


PS:

I cannot see/list the entire file-system correctly

If this is unclear, but nexe supposed to fully support FS read/write, I am happy to describe the oddities I have experienced.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ArashMotamedicommented, Jan 28, 2020

fs.promises.readdir works

0reactions
kittaakoscommented, May 14, 2020

have you managed to achieve that with nexe at the end?

No, I have not. But I have not re-evaluated it since https://github.com/nexe/nexe/issues/613#issuecomment-488577972.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to read a file you only have executable ...
NO. Unlike executable binary output, the binary loader is a special beast with privs to read files and set them into execution.
Read more >
Solved Linux/Bash • Scan the entire file system, from - Chegg
Question : Linux/Bash • Scan the entire file system, from "/" directory, and find all executable files. Write the list of full paths...
Read more >
Embedding a filesystem in an executable? - Stack Overflow
If you want to expose the filesystem contained in your executable to the OS so that other applications could read it, then one...
Read more >
All files on automounted NTFS partition are marked as ...
Following your advice I was able to find the right umask and fmask options for mounting the partition without setting all files to...
Read more >
Permissions and Executables – A Primer for Computational ...
In fact, all users of the system usually own the files in their own home directory, and these files can't be tampered with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found