Documents SubFolder File Access
-
I can access a file which is located like Documents/My File.ext with this:
(FileSystem.getFolder(FileSystem.Documents)).getChildFile("My File.ext");
How can I access a file that is located under a subfolder of the Documents folder? For example:
Documents/SubFolder/My File.ext
-
@Fortune
getChildFile()
will also get subdirectories. -
@d-healey
I've tried this but it doesn't work, am I missing something? Develop Branch from 03.15.2022(FileSystem.getFolder(FileSystem.Documents)).getChildFile("SubFolder/My File.ext");
-
@d-healey Ok, using the .getChildFile() separately works! Thank you!
(FileSystem.getFolder(FileSystem.Documents)).getChildFile("SubFolder").getChildFile("My File.ext");
-
@Fortune You don't need the extra
()
aroundFileSystem.getFolder()