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: 
goya
Visitor

re: FormatDrive parameters

hello i'm working on adding all the builtin functions to my benchmark suite today and i came across FormatDrive(drive as String, fs_type As String)

to save me time and stress and because im testing on xd without usb drive can someone in the know please post example for the parameters

i'm interested in fs_type

is drive like
"ext0:"

is fs_type it like

"FAT16"
"FAT32"
"NTFS"

thanks in advance...
0 Kudos
4 REPLIES 4
destruk
Streaming Star

Re: re: FormatDrive parameters

As far as benchmarks go, would it not take the same amount of time to format a drive on a roku with USB 2.0 port, as it would on a computer with a USB 2.0 port?
Format isn't listed as a valid method in the roku component reference, but you might be able to delete files.

Boolean Delete(String path)
Recursively deletes all contents under the specified path.
Returns true if successful.
0 Kudos
goya
Visitor

Re: re: FormatDrive parameters

did i miss something again
it's in pg 39 brightscript reference manual
i would think they would want a way for us to format usb
i like it


7.14 FormatDrive(drive As String , fs_type As String) As Boolean
Formats a specified drive using the specified filesystem.


delete != format
but thanks

i just dont have usb on this thing to play with it. i can hook up my new roku 2 xs, but that is pain...

im not sure if its same time... i would think it depends on their hardware/software...

also, i'm trying to benchmark my old roku xd with my new roku 2 xs.

good way to learn the language and apis
0 Kudos
RokuMarkn
Visitor

Re: re: FormatDrive parameters

FormatDrive is not implemented on the Roku player.

--Mark
0 Kudos
goya
Visitor

Re: re: FormatDrive parameters

"RokuMarkn" wrote:
FormatDrive is not implemented on the Roku player.

--Mark


oh ok thx i was just going a-z in built in functions api ref 3.0, my bad... again thanks...
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.