Skip to content

Accessing File Sistem #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kekko7072 opened this issue Apr 12, 2021 · 1 comment
Closed

Accessing File Sistem #172

kekko7072 opened this issue Apr 12, 2021 · 1 comment

Comments

@kekko7072
Copy link

kekko7072 commented Apr 12, 2021

Hey I'd like to know If there is a way to access directly from my flutter app a file inside the file system. In fact I am creating a Embedded app to control a 3D Printer using Http request but the wifi settings are editable only using the ssh because it is in the file system at /boot/octopi-wpa-supplicant.txt. So there is a native Dart code to do it or a compatible plug (maybe like PATH_PROVIDER) to do it ?

@kekko7072
Copy link
Author

SOLUTION: Use directly dart command. For example I need to access this path /boot/octopi-wpa-supplicant.txt, I pass it as parameter for the directory root.
File('/boot/octopi-wpa-supplicant.txt') .readAsString() .then((String contents) { setState(() { dir = contents; }); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant