Player APIs (BrightScript & Ja...
...
Object Reference
Legacy Objects

roSyncPool

22min
we recommend using docid\ dz9zc0ke6jlqnibunuq0n instead brightsign enables the http //, https //, ftp\ //, and file // protocols object creation the rosyncpool object is created with a single parameter that specifies the file path where the pool is located createobject("rosyncpool", pool path as string) example pool = createobject ("rosyncpool", "sd /pool") ifsyncpool validatefiles(sync spec as rosyncspec, directory as string, options array as roassociativearray) as object validates the files in the specified directory against the hashes in the specified sync spec files that are not in the sync spec are ignored the options array can currently contain the following optional parameters deltecorrupt boolean boolean automatically delete files that do not match the sync spec the method will return an associative array that maps each filename to an explanation of why it is corrupt the array only contains corrupt files, so the success is reported by the method returning an empty associative array getfailurereason() as string asyncdownload(a as object) as boolean asynccancel() as boolean realize(a as object, b as string) as object protectfiles(a as object, b as integer) as boolean reservemegabytes(a as integer) as boolean getpoolsizeinmegabytes() as integer estimaterealizedsizeinmegabytes(a as object, b as string) as integer isready(a as object) as boolean validate(a as object, b as object) as boolean enablepeerverification(a as boolean) enablehostverification(a as boolean) setcertificatesfile(a as string) setuserandpassword(a as string, b as string) as boolean addheader(a as string, b as string) setheaders(a as object) as boolean setminimumtransferrate(a as integer, b as integer) as boolean asyncsuggestcache(a as object) as boolean setproxy(a as string) as boolean setproxybypass(a as array) as boolean setfileprogressintervalseconds(a as integer) as boolean queryfiles(a as object) as object setfileretrycount(a as integer) as boolean setrelativelinkprefix(prefix as string) as boolean bindtointerface(interface as integer) as boolean enableunsafeauthentication(a as boolean) enableunsafeproxyauthentication(enable as boolean) as boolean enableencodings(enable as boolean) as boolean setmaximumreceivebytespersecond(bytes per second as double) as boolean setmaximumpoolsizemegabytes(maximum size as integer) as boolean ifidentity getidentity() as integer the ifsourceidentity interface has been deprecated we recommend using the ifuserdata interface instead ifmessageport setport(a as object) ifuserdata setuserdata(user data as object) sets the user data that will be returned when events are raised getuserdata() as object returns the user data that has previously been set via setuserdata() it will return invalid if no data has been set