-
DKTools.IO._createStamp
()
asyncprivatestatic
-
Creates the file system stamp
- Version:
- Since:
-
DKTools.IO._loadStamp
()
privatestatic
-
Loads the file system stamp
- Since:
-
DKTools.IO._splitPath
(path)Array.<String>
privatestatic
-
Splits the path
Name |
Type |
Description |
path |
String
|
Path |
- Since:
Returns:
Type |
Description |
Array.<String>
|
Splitted path |
-
DKTools.IO._statPath
(path)Object
privatestatic
-
Returns the stats of the path
Name |
Type |
Description |
path |
String
|
Path |
- Since:
Returns:
-
DKTools.IO.absolutePathExists
(path)Boolean
static
-
Returns true if the absolute path exists
Name |
Type |
Description |
path |
String
|
Path |
- Version:
- Since:
Returns:
Type |
Description |
Boolean
|
Absolute path exists |
-
DKTools.IO.getAbsolutePath
(path)String
static
-
Returns the absolute path to file or directory
Name |
Type |
Description |
path |
String
|
Path |
- Since:
Returns:
Type |
Description |
String
|
Absolute path to file or directory |
-
-
Returns the project directory
- Since:
Returns:
-
DKTools.IO.initialize
()
static
-
- Version:
-
DKTools.IO.isDirectory
(fullPath)Boolean
static
-
Returns true if the full path is a directory
Name |
Type |
Description |
fullPath |
String
|
Path to directory |
- Version:
Returns:
Type |
Description |
Boolean
|
Full path is a directory |
-
DKTools.IO.isFile
(fullPath)Boolean
static
-
Returns true if the full path is a file
Name |
Type |
Description |
fullPath |
String
|
Path to file |
- Version:
Returns:
Type |
Description |
Boolean
|
Full path is a file |
-
DKTools.IO.joinPath
(paths)String
static
-
Joins all given path segments together using the platform specific separator as a delimiter,
then normalizes the resulting path.
Name |
Type |
Description |
paths |
String
|
repeatable
Path segments |
- Since:
Returns:
-
DKTools.IO.normalizePath
(path, reverseSlash)String
static
-
Returns a normalized path
Name |
Type |
Default |
Description |
path |
String
|
|
Path for normalize |
reverseSlash |
Boolean
|
false
|
optional
Reversing slash |
- Version:
Returns:
Type |
Description |
String
|
Normalized path |
-
DKTools.IO.parsePath
(path)Object
static
-
Returns an object whose properties represent significant elements of the path.
Trailing directory separators are ignored.
Name |
Type |
Description |
path |
String
|
Path |
- Since:
Returns:
-
DKTools.IO.pathExists
(path)Boolean
static
-
Returns true if the path exists
Name |
Type |
Description |
path |
String
|
Path |
- Version:
Returns:
Type |
Description |
Boolean
|
Path exists |
Example
DKTools.IO.pathExists('img/system/'); // => true
-
DKTools.IO.reverseSlashes
(path)String
static
-
Reverses slashes on "/"
Name |
Type |
Description |
path |
String
|
Path |
- Since:
Returns:
Type |
Description |
String
|
Path with reversed slashes "/" |