new File()
Represents a baja:File
in BajaScript.
A File can be resolved from a NEQL query.
Members
-
<static> DEFAULT :baja.file.File
-
Default
File
instance.Type:
Methods
-
getExtension()
-
Returns the extension of the file.
Returns:
- Type
- String
-
getFileName()
-
Returns the file name of the file.
Returns:
- Type
- String
-
getLastModified()
-
Return the file's last modified time.
Returns:
- Type
- baja.AbsTime
-
getMimeType()
-
Return the file's MIME Type.
Returns:
- Type
- String
-
getNavOrd()
-
Return the File's Nav ORD.
Returns:
- Type
- baja.Ord
-
getOrdInSession()
-
Return the ORD in session.
Returns:
- Type
- baja.Ord
-
getReadUri()
-
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.Returns:
- Type
- String
-
getSize()
-
Return the file's size.
Returns:
- Type
- Number
-
getWriteUri()
-
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.Returns:
- Type
- String
-
isDirectory()
-
Return true if the file is a directory.
Returns:
- Type
- Boolean
-
isReadonly()
-
Return true if the file is readonly.
Returns:
- Type
- Boolean