File explorer for the app storage

For an application I am developing I need a basic file explorer, with which users can manage files and directories (read/write files to the app specific storage, create directories and delete files/directories).

I would appreciate any comment about the attached first attempt.

  • any comment on the user interface would be welcome
  • any suggestions on how to check if the name entered by the user is a valid file/directory name
  • I am still working on how to prevent the accidental overwriting of an existing file, any comment on how to implement it would be useful

If I am reinventing the wheel, please let me know. I searched and I did not find any such app, only a thread on this forum asking about it (but practically getting the reply “you need to create it yourself”).

I need to store and recover text files.

I don’t want to use extensions, because I would like to publish the app I am developing for both android and ios.

For the same reason and problems discussed in an earlier thread, I don’t want to use the existing file explorer component.

Here is the app:

fileExplorer.aia (29.6 KB)

Sort listings by folders first?
Sort alphabetically/last modified/etc. ?
More icons for file types ?

To validate or prevent overwriting you need to compare user provided filename with contents of the directories, and use regex to confirm correct syntax for a filename.