NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view on GitHub
Search
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
File
Class File
Modules
File
constructor
_extension
_is
Known
_last
Modified
_locked
_name
_path
extension
is
Locked
last
Modified
name
parent
path
size
check
Access
read
read
Sync
read
Text
read
Text
Sync
remove
remove
Sync
rename
rename
Sync
write
write
Sync
write
Text
write
Text
Sync
exists
from
Path
Hierarchy
FileSystemEntity
Index
Constructors
constructor
Properties
_extension
_is
Known
_last
Modified
_locked
_name
_path
Accessors
extension
is
Locked
last
Modified
name
parent
path
size
Methods
check
Access
read
read
Sync
read
Text
read
Text
Sync
remove
remove
Sync
rename
rename
Sync
write
write
Sync
write
Text
write
Text
Sync
exists
from
Path
Constructors
constructor
new
File
(
)
:
File
Returns
File
Properties
_extension
_extension
:
string
_is
Known
_is
Known
:
boolean
_last
Modified
_last
Modified
:
Date
_locked
_locked
:
boolean
_name
_name
:
string
_path
_path
:
string
Accessors
extension
get
(
)
:
string
Returns
string
is
Locked
get
(
)
:
boolean
Returns
boolean
last
Modified
get
(
)
:
Date
Returns
Date
name
get
(
)
:
string
Returns
string
parent
get
(
)
:
Folder
Returns
Folder
path
get
(
)
:
string
Returns
string
size
get
(
)
:
number
Returns
number
Methods
Private
check
Access
check
Access
(
)
:
void
Returns
void
read
read
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
read
Sync
read
Sync
(
onError
?:
function
)
:
any
Parameters
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
read
Text
read
Text
(
encoding
?:
string
)
:
Promise
<
string
>
Parameters
Optional
encoding:
string
Returns
Promise
<
string
>
read
Text
Sync
read
Text
Sync
(
onError
?:
function
, encoding
?:
string
)
:
string
Parameters
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Optional
encoding:
string
Returns
string
remove
remove
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
remove
Sync
remove
Sync
(
onError
?:
function
)
:
void
Parameters
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
void
rename
rename
(
newName
:
string
)
:
Promise
<
any
>
Parameters
newName:
string
Returns
Promise
<
any
>
rename
Sync
rename
Sync
(
newName
:
string
, onError
?:
function
)
:
void
Parameters
newName:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
void
write
write
(
content
:
any
)
:
Promise
<
void
>
Parameters
content:
any
Returns
Promise
<
void
>
write
Sync
write
Sync
(
content
:
any
, onError
?:
function
)
:
void
Parameters
content:
any
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
void
write
Text
write
Text
(
content
:
string
, encoding
?:
string
)
:
Promise
<
any
>
Parameters
content:
string
Optional
encoding:
string
Returns
Promise
<
any
>
write
Text
Sync
write
Text
Sync
(
content
:
string
, onError
?:
function
, encoding
?:
string
)
:
void
Parameters
content:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Optional
encoding:
string
Returns
void
Static
exists
exists
(
path
:
string
)
:
boolean
Parameters
path:
string
Returns
boolean
Static
from
Path
from
Path
(
path
:
string
)
:
File
Parameters
path:
string
Returns
File
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method