forked from npomfret/react-native-cloud-fs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.js
42 lines (39 loc) · 807 Bytes
/
common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
'use strict';
/**
* @class
* @property {string} name
* @property {string} path
* @property {string} uri
* @property {string} lastModified
* @property {number} size
* @property {boolean} isFile
* @property {boolean} isDirectory
*/
export class File {
constructor (name, path, uri, lastModified, size, isFile, isDirectory) {
this.name = name;
this.path = path;
this.uri = uri;
this.lastModified = lastModified;
this.size = size;
this.isFile = isFile;
this.isDirectory = isDirectory;
}
}
/**
* @class
* @property {string} path
* @property {File[]} files
*/
export class FileList {
constructor (path, files) {
this.path = path;
this.files = files;
}
}
/**
* @interface
* @name SourcePath
* @property {string} [uri]
* @property {string} [path]
*/