Search
Preparing search index...
The search index is not available
JSDK 2.7.0 API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
JS
util
Files
Class Files
File Helper
Hierarchy
Files
Index
Properties
ONE_
GB
ONE_
KB
ONE_
MB
ONE_
TB
Methods
convert
Size
get
File
Name
get
File
Type
is
File
Type
to
Size
String
Properties
Static
ONE_
GB
ONE_
GB
:
number
= 1073741824
Static
ONE_
KB
ONE_
KB
:
number
= 1024
Static
ONE_
MB
ONE_
MB
:
number
= 1048576
Static
ONE_
TB
ONE_
TB
:
number
= 1099511627776
Methods
Static
convert
Size
convert
Size
(
size
:
string
|
number
, orgUnit
:
FileSizeUnit
, tarUnit
:
FileSizeUnit
)
:
number
Parameters
size:
string
|
number
orgUnit:
FileSizeUnit
tarUnit:
FileSizeUnit
Returns
number
Static
get
File
Name
get
File
Name
(
path
:
string
)
:
string
Parameters
path:
string
Returns
string
Static
get
File
Type
get
File
Type
(
path
:
string
)
:
string
Parameters
path:
string
Returns
string
Static
is
File
Type
is
File
Type
(
path
:
string
, exts
:
string
)
:
boolean
Parameters
path:
string
exts:
string
Returns
boolean
Static
to
Size
String
to
Size
String
(
byte
:
string
|
number
, sizeUnit
?:
FileSizeUnit
)
:
string
Parameters
byte:
string
|
number
Optional
sizeUnit:
FileSizeUnit
Returns
string
Globals
JS
an
app
core
d2
ds
fx
input
ioc
lang
math
media
model
net
store
sugar
ui
unit
util
view
Files
ONE_
GB
ONE_
KB
ONE_
MB
ONE_
TB
convert
Size
get
File
Name
get
File
Type
is
File
Type
to
Size
String
File Helper