NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view in github
Search
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"file-system/file-system-access"
FileSystemAccess
Class FileSystemAccess
Globals
"file-
system/file-
system-
access"
File
System
Access
delete
File
delete
Folder
each
Entity
empty
Folder
file
Exists
folder
Exists
get
Current
App
Path
get
Documents
Folder
Path
get
Entities
get
File
get
File
Extension
get
File
Size
get
Folder
get
Last
Modified
get
Logical
Root
Path
get
Parent
get
Path
Separator
get
Temp
Folder
Path
join
Path
join
Paths
normalize
Path
read
read
Async
read
Sync
read
Text
read
Text
Async
read
Text
Sync
rename
write
write
Async
write
Sync
write
Text
write
Text
Async
write
Text
Sync
Hierarchy
FileSystemAccess
Index
Methods
delete
File
delete
Folder
each
Entity
empty
Folder
file
Exists
folder
Exists
get
Current
App
Path
get
Documents
Folder
Path
get
Entities
get
File
get
File
Extension
get
File
Size
get
Folder
get
Last
Modified
get
Logical
Root
Path
get
Parent
get
Path
Separator
get
Temp
Folder
Path
join
Path
join
Paths
normalize
Path
read
read
Async
read
Sync
read
Text
read
Text
Async
read
Text
Sync
rename
write
write
Async
write
Sync
write
Text
write
Text
Async
write
Text
Sync
Methods
delete
File
delete
File
(
path
:
string
, onError
?:
function
)
:
any
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
delete
Folder
delete
Folder
(
path
:
string
, onError
?:
function
)
:
any
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
each
Entity
each
Entity
(
path
:
string
, onEntity
:
function
, onError
?:
function
)
:
any
Parameters
path:
string
onEntity:
function
(
entity
:
object
)
:
boolean
Parameters
entity:
object
extension
:
string
name
:
string
path
:
string
Returns
boolean
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
empty
Folder
empty
Folder
(
path
:
string
, onError
?:
function
)
:
void
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
void
file
Exists
file
Exists
(
path
:
string
)
:
boolean
Parameters
path:
string
Returns
boolean
folder
Exists
folder
Exists
(
path
:
string
)
:
boolean
Parameters
path:
string
Returns
boolean
get
Current
App
Path
get
Current
App
Path
(
)
:
string
Returns
string
get
Documents
Folder
Path
get
Documents
Folder
Path
(
)
:
string
Returns
string
get
Entities
get
Entities
(
path
:
string
, onError
?:
function
)
:
Array
<
object
>
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
Array
<
object
>
get
File
get
File
(
path
:
string
, onError
?:
function
)
:
object
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
object
extension
:
string
name
:
string
path
:
string
get
File
Extension
get
File
Extension
(
path
:
string
)
:
string
Parameters
path:
string
Returns
string
get
File
Size
get
File
Size
(
path
:
string
)
:
number
Parameters
path:
string
Returns
number
get
Folder
get
Folder
(
path
:
string
, onError
?:
function
)
:
object
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
object
name
:
string
path
:
string
get
Last
Modified
get
Last
Modified
(
path
:
string
)
:
Date
Parameters
path:
string
Returns
Date
get
Logical
Root
Path
get
Logical
Root
Path
(
)
:
string
Returns
string
get
Parent
get
Parent
(
path
:
string
, onError
?:
function
)
:
object
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
object
name
:
string
path
:
string
get
Path
Separator
get
Path
Separator
(
)
:
string
Returns
string
get
Temp
Folder
Path
get
Temp
Folder
Path
(
)
:
string
Returns
string
join
Path
join
Path
(
left
:
string
, right
:
string
)
:
string
Parameters
left:
string
right:
string
Returns
string
join
Paths
join
Paths
(
paths
:
string[]
)
:
string
Parameters
paths:
string[]
Returns
string
normalize
Path
normalize
Path
(
path
:
string
)
:
string
Parameters
path:
string
Returns
string
read
read
(
path
:
string
, onError
?:
function
)
:
any
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
read
Async
read
Async
(
path
:
string
)
:
Promise
<
any
>
Parameters
path:
string
Returns
Promise
<
any
>
read
Sync
read
Sync
(
path
:
string
, onError
?:
function
)
:
any
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
read
Text
read
Text
(
path
:
string
, onError
?:
function
, encoding
?:
any
)
:
string
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Optional
encoding:
any
Returns
string
read
Text
Async
read
Text
Async
(
path
:
string
, encoding
?:
any
)
:
Promise
<
string
>
Parameters
path:
string
Optional
encoding:
any
Returns
Promise
<
string
>
read
Text
Sync
read
Text
Sync
(
path
:
string
, onError
?:
function
, encoding
?:
any
)
:
string
Parameters
path:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Optional
encoding:
any
Returns
string
rename
rename
(
path
:
string
, newPath
:
string
, onError
?:
function
)
:
void
Parameters
path:
string
newPath:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
void
write
write
(
path
:
string
, content
:
any
, onError
?:
function
)
:
any
Parameters
path:
string
content:
any
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
write
Async
write
Async
(
path
:
string
, content
:
any
)
:
Promise
<
void
>
Parameters
path:
string
content:
any
Returns
Promise
<
void
>
write
Sync
write
Sync
(
path
:
string
, content
:
any
, onError
?:
function
)
:
any
Parameters
path:
string
content:
any
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Returns
any
write
Text
write
Text
(
path
:
string
, content
:
string
, onError
?:
function
, encoding
?:
any
)
:
any
Parameters
path:
string
content:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Optional
encoding:
any
Returns
any
write
Text
Async
write
Text
Async
(
path
:
string
, content
:
string
, encoding
?:
any
)
:
Promise
<
void
>
Parameters
path:
string
content:
string
Optional
encoding:
any
Returns
Promise
<
void
>
write
Text
Sync
write
Text
Sync
(
path
:
string
, content
:
string
, onError
?:
function
, encoding
?:
any
)
:
any
Parameters
path:
string
content:
string
Optional
onError:
function
(
error
:
any
)
:
any
Parameters
error:
any
Returns
any
Optional
encoding:
any
Returns
any
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
🐛 Debug your mobile network traffic with Fiddler! Try it on
iOS
or
Android