You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am searching for the best way to simply get a directory's name/path.
I looked at the file_upload.rs example and ran it, and it has basically what I need. The main issue is that I do not want file contents, or the contents of all files in a directory, but rather just the directory name.
Looking at the traits in the source file_data.rs, I did not see a "read_directory_to_string" type of function. Just wondering if this already exists in another crate or perhaps it could be added here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am searching for the best way to simply get a directory's name/path.
I looked at the file_upload.rs example and ran it, and it has basically what I need. The main issue is that I do not want file contents, or the contents of all files in a directory, but rather just the directory name.
Looking at the traits in the source file_data.rs, I did not see a "read_directory_to_string" type of function. Just wondering if this already exists in another crate or perhaps it could be added here.
Beta Was this translation helpful? Give feedback.
All reactions