Off Topic / View files in folder?

Author
Message
puzzle20
Recently Online
Joined: 22nd Jan 2023
Location:
Posted: 3rd Nov 2023 21:39
Was not sure where to post this. How do i view contents of media folder?

ModelPath as string
ModelPath = "/media"

FolderId as integer
FolderId = OpenRawFolder(ModelPath)

DFCount as integer
DFCount = GetRawFolderNumFiles(FolderId)

FolderCount as integer
FolderCount = GetRawFolderNumFolders(FolderId)

Does not error but does not show proper file count.
If i have a directory inside media folder and do this OpenRawFolder(ModelPath/dirname) errors.

Any help is appreciated.
PM
puzzle20
Recently Online
Joined: 22nd Jan 2023
Location:
Posted: 4th Nov 2023 01:10
I was not using an absolute path. Got this working.
PM
puzzle20
Recently Online
Joined: 22nd Jan 2023
Location:
Posted: 4th Nov 2023 01:49
How to determine if file is directory?

I'm looping files in media folder.
It lists file names but directory names are not printing. Just black.
PM

Login to post a reply

Server time is: 2023-12-05 21:54:20
Your offset time is: 2023-12-05 21:54:20