new File()
- Description:
Represents a
baja:Filein BajaScript.
- Source:
Members
(static) DEFAULT :baja.file.File
- Description:
Default
Fileinstance.
- Source:
Default File instance.
Type:
Methods
getExtension() → {String}
- Description:
Returns the extension of the file.
- Source:
Returns:
- Type
- String
getFileName() → {String}
- Description:
Returns the file name of the file.
- Source:
Returns:
- Type
- String
getLastModified() → {baja.AbsTime}
- Description:
Return the file's last modified time.
- Source:
Returns:
- Type
- baja.AbsTime
getMimeType() → {String}
- Description:
Return the file's MIME Type.
- Source:
Returns:
- Type
- String
getNavOrd() → {baja.Ord}
- Description:
Return the File's Nav ORD.
- Source:
Returns:
- Type
- baja.Ord
getOrdInSession() → {baja.Ord}
- Description:
Return the ORD in session.
- Source:
Returns:
- Type
- baja.Ord
getReadUri() → {String}
- Description:
Return the file's URI to read file data via an HTTP GET. If
the file can't be read then a blank string will be returned.
- Source:
Returns:
- Type
- String
getSize() → {Number}
- Description:
Return the file's size.
- Source:
Returns:
- Type
- Number
getWriteUri() → {String}
- Description:
Return the file's URI to write file data via an HTTP PUT. If
the file can't be written too then a blank string will be returned.
- Source:
Returns:
- Type
- String
isDirectory() → {Boolean}
- Description:
Return true if the file is a directory.
- Source:
Returns:
- Type
- Boolean
isReadonly() → {Boolean}
- Description:
Return true if the file is readonly.
- Source:
Returns:
- Type
- Boolean