Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
greubel
Visitor

roFileSystem stat()

Is there anyway to get the file time ? It would be nice if it came back as part of the stat() call.
0 Kudos
5 REPLIES 5
RokuMarkn
Visitor

Re: roFileSystem stat()

What kind of "file time" are you looking for? Creation time, modification time, access time, or something else?

--Mark
0 Kudos
greubel
Visitor

Re: roFileSystem stat()

It would be nice to be able to sort the files based on time.
If we had time of last access, that could tell if the file has been viewed ? (maybe)
Or with the creation/modified times, could order them by newest first. Handy for episodes.
0 Kudos
RokuMarkn
Visitor

Re: roFileSystem stat()

Are you talking about media files residing on a server? The roFileSystem APIs only operate on local files, residing on the Roku box.

--Mark
0 Kudos
greubel
Visitor

Re: roFileSystem stat()

No, the USB drive.
0 Kudos
RokuMarkn
Visitor

Re: roFileSystem stat()

That information is not currently available, but it's a reasonable request to add it to the Stat() information. I'll file an enhancement request for this.

--Mark
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.