Repository navigation
Expand file tree
/
Copy pathFileSystem.d.ts
More file actions
81 lines (81 loc) · 4.92 KB
/
Copy pathFileSystem.d.ts
File metadata and controls
81 lines (81 loc) · 4.92 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import type { PHPEngine } from "../PHPEngine.js";
import type { PHPContext } from "../PHPContext.js";
import { PHPReference } from "./PHPVariable.js";
export declare class FileSystemRuntime {
static fileowner(ctx: PHPContext, filenameArg?: PHPReference): Promise<number | false>;
static fileperms(ctx: PHPContext, filenameArg?: PHPReference): Promise<number | false>;
static glob(ctx: PHPContext, patternArg?: PHPReference, flagsArg?: PHPReference): Promise<string[] | false>;
static file(ctx: PHPContext, filepathArg?: PHPReference, flagsArg?: PHPReference): Promise<string[] | false>;
static file_get_contents(ctx: PHPContext, filepathArg?: any): Promise<string | false>;
static file_put_contents(ctx: PHPContext, filepathArg?: PHPReference, dataArg?: PHPReference, flagsArg?: PHPReference): Promise<number | false>;
static file_exists(ctx: PHPContext, filepathArg?: PHPReference): Promise<boolean>;
static is_dir(ctx: PHPContext, filepathArg?: PHPReference): Promise<boolean>;
static is_file(ctx: PHPContext, filepathArg?: PHPReference): Promise<boolean>;
static is_readable(ctx: PHPContext, filepathArg?: PHPReference): Promise<boolean>;
static is_writable(ctx: PHPContext, filepathArg?: PHPReference): Promise<boolean>;
static filesize(ctx: PHPContext, filepathArg?: PHPReference): Promise<number | false>;
static filemtime(ctx: PHPContext, filepathArg?: PHPReference): Promise<number | false>;
static realpath(ctx: PHPContext, filepathArg?: PHPReference): Promise<string | false>;
static basename(ctx: PHPContext, filepathArg?: any, suffixArg?: any): Promise<string>;
static dirname(ctx: PHPContext, filepathArg?: any): Promise<string>;
static pathinfo(ctx: PHPContext, filepathArg?: any, flagsArg?: any): Promise<Record<string, string>>;
static mkdir(ctx: PHPContext, dirpathArg?: PHPReference, modeArg?: PHPReference, recursiveArg?: PHPReference): Promise<boolean>;
static chmod(ctx: PHPContext, filenameArg?: PHPReference, modeArg?: PHPReference): Promise<boolean>;
static rmdir(ctx: PHPContext, dirpathArg?: PHPReference): Promise<boolean>;
static unlink(ctx: PHPContext, filepathArg?: PHPReference): Promise<boolean>;
static rename(ctx: PHPContext, oldnameArg?: PHPReference, newnameArg?: PHPReference): Promise<boolean>;
static copy(ctx: PHPContext, sourceArg?: PHPReference, destArg?: PHPReference): Promise<boolean>;
static tempnam(ctx: PHPContext, dirArg?: PHPReference, prefixArg?: PHPReference): Promise<string | false>;
static sys_get_temp_dir(ctx?: PHPContext): Promise<string>;
static scandir(ctx: PHPContext, dirpathArg?: PHPReference): Promise<string[] | false>;
static opendir(ctx: PHPContext, pathArg?: any): Promise<any>;
static readdir(ctx: PHPContext, handleArg?: any): Promise<string | false>;
static closedir(ctx: PHPContext, handleArg?: any): Promise<boolean>;
static rewinddir(ctx: PHPContext, handleArg?: any): Promise<void>;
static constants: {
glob_err: number;
glob_mark: number;
glob_nosort: number;
glob_nocheck: number;
glob_noescape: number;
glob_brace: number;
glob_onlydir: number;
file_use_include_path: number;
file_ignore_new_lines: number;
file_skip_empty_lines: number;
file_append: number;
};
static functions: {
fileowner: typeof FileSystemRuntime.fileowner;
fileperms: typeof FileSystemRuntime.fileperms;
glob: typeof FileSystemRuntime.glob;
file: typeof FileSystemRuntime.file;
file_get_contents: typeof FileSystemRuntime.file_get_contents;
file_put_contents: typeof FileSystemRuntime.file_put_contents;
file_exists: typeof FileSystemRuntime.file_exists;
is_dir: typeof FileSystemRuntime.is_dir;
is_file: typeof FileSystemRuntime.is_file;
is_readable: typeof FileSystemRuntime.is_readable;
is_writable: typeof FileSystemRuntime.is_writable;
filesize: typeof FileSystemRuntime.filesize;
filemtime: typeof FileSystemRuntime.filemtime;
realpath: typeof FileSystemRuntime.realpath;
basename: typeof FileSystemRuntime.basename;
dirname: typeof FileSystemRuntime.dirname;
pathinfo: typeof FileSystemRuntime.pathinfo;
mkdir: typeof FileSystemRuntime.mkdir;
opendir: typeof FileSystemRuntime.opendir;
readdir: typeof FileSystemRuntime.readdir;
closedir: typeof FileSystemRuntime.closedir;
rewinddir: typeof FileSystemRuntime.rewinddir;
chmod: typeof FileSystemRuntime.chmod;
rmdir: typeof FileSystemRuntime.rmdir;
unlink: typeof FileSystemRuntime.unlink;
rename: typeof FileSystemRuntime.rename;
copy: typeof FileSystemRuntime.copy;
tempnam: typeof FileSystemRuntime.tempnam;
sys_get_temp_dir: typeof FileSystemRuntime.sys_get_temp_dir;
scandir: typeof FileSystemRuntime.scandir;
};
static register(engine: PHPEngine): void;
}