Namespace Storage.SCAP_URI

Storage.SCAP_URI

Namespace Summary
Constructor Attributes Constructor Name and Description
 

This section describes the SCAP URI to locate resources for the SCAP strorage APIs.

Namespace Detail

Storage.SCAP_URI

This section describes the SCAP URI to locate resources for the SCAP strorage APIs. SCAP URI follows the syntax of a standard URI.

Those restrictions are applied to the SCAP URI.

  • If the protocol for the URI is file://, then allowd charecter sets are [a-zA-Z0-9-._]
  • URI cannot be longer than a 256 length string

Those are formats that are recognized by SCAP storage APIs.

NameDescription
file://internal/ Locate to a file in internal memory space. No directories or files should be included in the path beyond root path.
If the path to the file destination is not found, directories for the file path will be automatically created.
Maximum length for a pathname is 255.

(note: ../ is not allowed in the file path. '*' and '?' are also not supported.)

file://usb:[index]/ Locate to a file in USB storage device at USB port:[index]. A USB storage device should be connected to the port.
If the path to the file destination is not found, directories for the file path will be automatically created.
Maximum length for a pathname is 255.

(note: ../ is not allowed in the file path. '*' and '?' are also not supported.)

file://sdcard:[index]/ Locate to a file in SD card device at SD card port:[index]. A SD card storage device should be connected to the port.
If the path to the file destination is not found, directories for the file path will be automatically created.
Maximum length for a pathname is 255.

(note: ../ is not allowed in the file path. '*' and '?' are also not supported.)

http://, https:// Locate to a file in remote location. The file is downloaded using HTTP GET protocol. Secure connection using https protocol is also supported.
ftp:// (FTP)
sftp:// (FTP with SSH file transfer protocol)
ftps:// (FTP over SSL/TLS)
Locate to a file from FTP server. sftp (FTP with SSH file transfer) and ftps (FTP with SSL/TLS) is also supported.
Additional security option may be defined for sftp and ftps.
User name, password should be part of the URI if needed.
ex) ftp://user:password@my.ftp.site:21/path/to/file.txt If port number is not defined in URI, port number will be 21 (ftp or ftps) or 22 (sftp).
If auth is not defined in URI, 'anonymous:anonymous@' will be used if protocol is ftp/ftps.

Note : Copied files can be accessed by local/USB application from the "./content" directory of the local/USB application
Note : Copied files can be accessed from local http file server.(http://127.0.0.1:9080/[copied_filename])
Note : Files that are copied to USB storage can be accessed from the local http file server.(http://127.0.0.1:9080/external/usb/[usb_port])
TIP : If DNS server is not set in the monitor, accessing local file server using 'localhost' can take a long time to load the resource. Use '127.0.0.1' instead.