| java.lang.Object com.caucho.quercus.module.AbstractQuercusModule com.caucho.quercus.lib.file.FileModule
Method Summary | |
public static Value | basename(StringValue path, StringValue suffix) Returns the base name of a string. | public static boolean | chdir(Env env, Path path) | public static boolean | chgrp(Env env, Path file, Value group) Changes the group of the file. | public static boolean | chmod(Env env, Path file, int mode) Changes the permissions of the file. | public static boolean | chown(Env env, Path file, Value user) Changes the ownership of the file. | public static boolean | chroot(Env env, Path path) | public static Value | clearstatcache(Env env) | public static void | closedir(Env env, DirectoryValue dirV) | public static boolean | copy(Env env, Path src, Path dst) Copies a file to the destination. | public static Directory | dir(Env env, Path path) | public StringValue | dirname(Env env, StringValue path) Returns the directory name of a string. | public static Value | disk_free_space(Env env, Path directory) | public static Value | disk_total_space(Env env, Path directory) | public static Value | diskfreespace(Env env, Path directory) | public static boolean | fclose(Env env, BinaryStream s) Closes a file. | public static boolean | feof(Env env, BinaryInput is) Checks for the end of file. | public static boolean | fflush(Env env, BinaryOutput os) Flushes a file. | public static Value | fgetc(Env env, BinaryInput is) | public Value | fgetcsv(Env env, BinaryInput is, int length, String delimiter, String enclosure) Parses a comma-separated-value line from a file. | public static Value | fgets(Env env, BinaryInput is, int length) | public static Value | fgetss(Env env, BinaryInput is, int length, String allowedTags) | public static Value | file(Env env, StringValue filename, boolean useIncludePath, Value context) Parses the file, returning it in an array. | public static boolean | file_exists(Path path) | public static StringValue | file_get_contents(Env env, StringValue filename, boolean useIncludePath, Value context, long offset, long maxLen) Parses the file, returning it as a string array. | public Value | file_put_contents(Env env, StringValue filename, Value data, int flags, Value context) Writes data to a file. | public static Value | fileatime(Env env, Path path) | public static Value | filectime(Env env, Path path) | public static Value | filegroup(Env env, Path path) | public static Value | fileinode(Env env, Path path) | public static Value | filemtime(Env env, Path path) | public static Value | fileowner(Env env, Path path) | public static Value | fileperms(Env env, Path path) | public static Value | filesize(Env env, Path path) | public static Value | filetype(Env env, Path path) | public static boolean | flock(Env env, LockableStream fileV, int operation, Value wouldBlock) | public static boolean | fnmatch(Env env, String pattern, String string, int flags) Returns true if the given string matches the given glob pattern. | public static BinaryStream | fopen(Env env, StringValue filename, String mode, boolean useIncludePath, Value context) Opens a file. | public Value | fpassthru(Env env, BinaryInput is) Output the filepointer data to the output stream. | public Value | fputcsv(Env env, BinaryOutput os, ArrayValue value, StringValue delimiter, StringValue enclosure) Parses a comma-separated-value line from a file. | public static Value | fputs(Env env, BinaryOutput os, InputStream value, int length) Writes a string to the file. | public static Value | fread(Env env, BinaryInput is, int length) Reads content from a file. | public static Value | fscanf(Env env, BinaryInput is, StringValue format, Value[] args) Reads and parses a line. | public static Value | fseek(Env env, BinaryInput is, long offset, int whence) Sets the current position. | public static Value | fstat(Env env, BinaryStream stream) Returns the status of the given file pointer. | public static Value | ftell(Env env, BinaryInput is) Returns the current position. | public static boolean | ftruncate(Env env, BinaryOutput handle, long size) Truncates a file. | public static Value | fwrite(Env env, BinaryOutput os, InputStream value, int length) Writes a string to the file. | public Map<String, Value> | getConstMap() Returns the constants defined by this module. | public IniDefinitions | getIniDefinitions() Returns the default quercus.ini values. | public static String | getcwd(Env env) Returns the current working directory. | public static Value | glob(Env env, StringValue pattern, int flags) Matches all files with the given pattern. | public static boolean | is_dir(Path path) Returns true if the path is a directory. | public static boolean | is_executable(Path path) | public static boolean | is_file(Path path) Returns true if the path is a file. | public static boolean | is_link(Env env, Path path) | public static boolean | is_readable(Path path) | public static boolean | is_uploaded_file(Env env, Path path) Returns true for an uploaded file. | public static boolean | is_writable(Path path) | public static boolean | is_writeable(Path path) | public boolean | link(Env env, Path source, Path destination) | public static long | linkinfo(Env env, Path path) | public static Value | lstat(Env env, StringValue filename) | public static boolean | mkdir(Env env, StringValue dirname, int mode, boolean recursive, Value context) | public static boolean | move_uploaded_file(Env env, Path src, Path dst) Moves the uploaded file. | public static Value | opendir(Env env, StringValue pathName, Value context) | public static Value | parse_ini_file(Env env, Path path, boolean processSections) Parses the ini file. | public static Value | pathinfo(Env env, String path, Value optionsV) Parses the path, splitting it into parts. | public static int | pclose(Env env, BinaryStream stream) | public static BinaryStream | popen(Env env, String command, StringValue mode) | public static Value | readdir(Env env, DirectoryValue dir) | public Value | readfile(Env env, StringValue filename, boolean useIncludePath, Value context) Read the contents of a file and write them out. | public static boolean | readlink(Env env, String path) The readlink always fails. | public static String | realpath(Path path) Returns the actual path name. | public static boolean | rename(Env env, StringValue from, StringValue to) | public static Value | rewind(Env env, BinaryInput is) Rewinds the stream. | public static void | rewinddir(Env env, DirectoryValue dir) | public static boolean | rmdir(Env env, StringValue filename, Value context) | public static Value | scandir(Env env, String fileName, int order, Value context) | public static int | set_file_buffer(Env env, BinaryOutput stream, int bufferSize) Sets the write buffer. | public static Value | stat(Env env, StringValue filename) | static Value | statImpl(Env env, Path path) | public boolean | symlink(Env env, Path source, Path destination) | public static Value | tempnam(Env env, Path dir, String prefix) Creates a temporary file. | public static FileInputOutput | tmpfile(Env env) Creates a temporary file. | public static boolean | touch(Path path, int time, int atime) | public static int | umask(Env env, int mask) | public static boolean | unlink(Env env, StringValue filename, Value context) |
DIRECTORY_SEPARATOR | final public static String DIRECTORY_SEPARATOR(Code) | | |
FILE_APPEND | final public static int FILE_APPEND(Code) | | |
FILE_USE_INCLUDE_PATH | final public static int FILE_USE_INCLUDE_PATH(Code) | | |
FNM_CASEFOLD | final public static int FNM_CASEFOLD(Code) | | |
FNM_NOESCAPE | final public static int FNM_NOESCAPE(Code) | | |
FNM_PATHNAME | final public static int FNM_PATHNAME(Code) | | |
FNM_PERIOD | final public static int FNM_PERIOD(Code) | | |
GLOB_BRACE | final public static int GLOB_BRACE(Code) | | |
GLOB_ERR | final public static int GLOB_ERR(Code) | | |
GLOB_MARK | final public static int GLOB_MARK(Code) | | |
GLOB_NOCHECK | final public static int GLOB_NOCHECK(Code) | | |
GLOB_NOESCAPE | final public static int GLOB_NOESCAPE(Code) | | |
GLOB_NOSORT | final public static int GLOB_NOSORT(Code) | | |
GLOB_ONLYDIR | final public static int GLOB_ONLYDIR(Code) | | |
LOCK_EX | final public static int LOCK_EX(Code) | | |
LOCK_NB | final public static int LOCK_NB(Code) | | |
LOCK_SH | final public static int LOCK_SH(Code) | | |
LOCK_UN | final public static int LOCK_UN(Code) | | |
PATHINFO_BASENAME | final public static int PATHINFO_BASENAME(Code) | | |
PATHINFO_DIRNAME | final public static int PATHINFO_DIRNAME(Code) | | |
PATHINFO_EXTENSION | final public static int PATHINFO_EXTENSION(Code) | | |
PATHINFO_FILENAME | final public static int PATHINFO_FILENAME(Code) | | |
PATH_SEPARATOR | final public static String PATH_SEPARATOR(Code) | | |
UPLOAD_ERR_CANT_WRITE | final public static int UPLOAD_ERR_CANT_WRITE(Code) | | |
UPLOAD_ERR_EXTENSION | final public static int UPLOAD_ERR_EXTENSION(Code) | | |
UPLOAD_ERR_FORM_SIZE | final public static int UPLOAD_ERR_FORM_SIZE(Code) | | |
UPLOAD_ERR_INI_SIZE | final public static int UPLOAD_ERR_INI_SIZE(Code) | | |
UPLOAD_ERR_NO_FILE | final public static int UPLOAD_ERR_NO_FILE(Code) | | |
UPLOAD_ERR_NO_TMP_DIR | final public static int UPLOAD_ERR_NO_TMP_DIR(Code) | | |
UPLOAD_ERR_OK | final public static int UPLOAD_ERR_OK(Code) | | |
UPLOAD_ERR_PARTIAL | final public static int UPLOAD_ERR_PARTIAL(Code) | | |
chdir | public static boolean chdir(Env env, Path path)(Code) | | Changes the working directory
Parameters: path - the path to change to |
chgrp | public static boolean chgrp(Env env, Path file, Value group)(Code) | | Changes the group of the file.
Parameters: env - the PHP executing environment Parameters: file - the file to change the group of Parameters: group - the group id to change to |
chmod | public static boolean chmod(Env env, Path file, int mode)(Code) | | Changes the permissions of the file.
Parameters: env - the PHP executing environment Parameters: file - the file to change the group of Parameters: mode - the mode id to change to |
chown | public static boolean chown(Env env, Path file, Value user)(Code) | | Changes the ownership of the file.
Parameters: env - the PHP executing environment Parameters: file - the file to change the group of Parameters: user - the user id to change to |
chroot | public static boolean chroot(Env env, Path path)(Code) | | Changes the working directory, forming a virtual root
Parameters: path - the path to change to |
clearstatcache | public static Value clearstatcache(Env env)(Code) | | Clears the stat cache for the file
Parameters: env - the PHP executing environment |
closedir | public static void closedir(Env env, DirectoryValue dirV)(Code) | | Closes the directory
Parameters: dirV - the directory resource |
copy | public static boolean copy(Env env, Path src, Path dst)(Code) | | Copies a file to the destination.
Parameters: src - the source path Parameters: dst - the destination path |
dir | public static Directory dir(Env env, Path path)(Code) | | Opens a directory
Parameters: path - the path to change to |
disk_free_space | public static Value disk_free_space(Env env, Path directory)(Code) | | Returns the free space for disk partition containing the directory
Parameters: directory - the disk directory |
disk_total_space | public static Value disk_total_space(Env env, Path directory)(Code) | | Returns the total space for disk partition containing the directory
Parameters: directory - the disk directory |
diskfreespace | public static Value diskfreespace(Env env, Path directory)(Code) | | Returns the total space for disk partition containing the directory
Parameters: directory - the disk directory |
fgetcsv | public Value fgetcsv(Env env, BinaryInput is, int length, String delimiter, String enclosure)(Code) | | Parses a comma-separated-value line from a file.
Parameters: file - the file to read Parameters: length - the maximum line length Parameters: delimiter - optional comma replacement Parameters: enclosure - optional quote replacement |
file | public static Value file(Env env, StringValue filename, boolean useIncludePath, Value context)(Code) | | Parses the file, returning it in an array. Binary-safe.
Parameters: filename - the file's name Parameters: useIncludePath - if 1, use the include path Parameters: context - the resource context |
file_exists | public static boolean file_exists(Path path)(Code) | | Returns true if file exists
Parameters: path - the path to check |
file_get_contents | public static StringValue file_get_contents(Env env, StringValue filename, boolean useIncludePath, Value context, long offset, long maxLen)(Code) | | Parses the file, returning it as a string array.
Parameters: filename - the file's name Parameters: useIncludePath - if true, use the include path Parameters: context - the resource context |
fileatime | public static Value fileatime(Env env, Path path)(Code) | | Returns the file access time
Parameters: path - the path to check |
filectime | public static Value filectime(Env env, Path path)(Code) | | Returns the file create time
Parameters: path - the path to check |
filegroup | public static Value filegroup(Env env, Path path)(Code) | | Returns the file's group
Parameters: path - the path to check |
fileinode | public static Value fileinode(Env env, Path path)(Code) | | Returns the file's inocde
Parameters: path - the path to check |
filemtime | public static Value filemtime(Env env, Path path)(Code) | | Returns the file modified time
Parameters: path - the path to check |
fileowner | public static Value fileowner(Env env, Path path)(Code) | | Returns the file's owner
Parameters: path - the path to check |
fileperms | public static Value fileperms(Env env, Path path)(Code) | | Returns the file's permissions
Parameters: path - the path to check |
filesize | public static Value filesize(Env env, Path path)(Code) | | Returns the file's size
Parameters: path - the path to check |
filetype | public static Value filetype(Env env, Path path)(Code) | | Returns the file's type
Parameters: path - the path to check |
flock | public static boolean flock(Env env, LockableStream fileV, int operation, Value wouldBlock)(Code) | | Advisory locking
Parameters: fileV - the file handle Parameters: operation - the locking operation Parameters: wouldBlock - the resource context |
fnmatch | public static boolean fnmatch(Env env, String pattern, String string, int flags)(Code) | | Returns true if the given string matches the given glob pattern.
|
fopen | public static BinaryStream fopen(Env env, StringValue filename, String mode, boolean useIncludePath, Value context)(Code) | | Opens a file.
Parameters: filename - the path to the file to open Parameters: mode - the mode the file should be opened as. Parameters: useIncludePath - if true, search the current include path |
fputcsv | public Value fputcsv(Env env, BinaryOutput os, ArrayValue value, StringValue delimiter, StringValue enclosure)(Code) | | Parses a comma-separated-value line from a file.
Parameters: file - the file to read Parameters: delimiter - optional comma replacement Parameters: enclosure - optional quote replacement |
fread | public static Value fread(Env env, BinaryInput is, int length)(Code) | | Reads content from a file.
Parameters: is - the file |
fseek | public static Value fseek(Env env, BinaryInput is, long offset, int whence)(Code) | | Sets the current position.
Parameters: is - the stream to test 0 on success, -1 on error. |
ftell | public static Value ftell(Env env, BinaryInput is)(Code) | | Returns the current position.
Parameters: file - the stream to test position in file or FALSE on error. |
ftruncate | public static boolean ftruncate(Env env, BinaryOutput handle, long size)(Code) | | Truncates a file.
|
getConstMap | public Map<String, Value> getConstMap()(Code) | | Returns the constants defined by this module.
|
getIniDefinitions | public IniDefinitions getIniDefinitions()(Code) | | Returns the default quercus.ini values.
|
getcwd | public static String getcwd(Env env)(Code) | | Returns the current working directory.
the current directory |
is_dir | public static boolean is_dir(Path path)(Code) | | Returns true if the path is a directory.
Parameters: path - the path to check |
is_executable | public static boolean is_executable(Path path)(Code) | | Returns true if the path is an executable file
Parameters: path - the path to check |
is_file | public static boolean is_file(Path path)(Code) | | Returns true if the path is a file.
Parameters: path - the path to check |
is_link | public static boolean is_link(Env env, Path path)(Code) | | Returns true if the path is a symbolic link
Parameters: path - the path to check |
is_readable | public static boolean is_readable(Path path)(Code) | | Returns true if the path is readable
Parameters: path - the path to check |
is_uploaded_file | public static boolean is_uploaded_file(Env env, Path path)(Code) | | Returns true for an uploaded file.
Parameters: path - the temp name of the uploaded file |
is_writable | public static boolean is_writable(Path path)(Code) | | Returns true if the path is writable
Parameters: path - the path to check |
is_writeable | public static boolean is_writeable(Path path)(Code) | | Returns true if the path is writable
Parameters: path - the path to check |
link | public boolean link(Env env, Path source, Path destination)(Code) | | Creates a hard link
|
linkinfo | public static long linkinfo(Env env, Path path)(Code) | | |
mkdir | public static boolean mkdir(Env env, StringValue dirname, int mode, boolean recursive, Value context)(Code) | | Makes the directory
Parameters: path - the directory to make |
move_uploaded_file | public static boolean move_uploaded_file(Env env, Path src, Path dst)(Code) | | Moves the uploaded file.
Parameters: path - the temp name of the uploaded file Parameters: dst - the destination path |
parse_ini_file | public static Value parse_ini_file(Env env, Path path, boolean processSections)(Code) | | Parses the ini file.
|
readfile | public Value readfile(Env env, StringValue filename, boolean useIncludePath, Value context)(Code) | | Read the contents of a file and write them out.
|
readlink | public static boolean readlink(Env env, String path)(Code) | | The readlink always fails.
|
realpath | public static String realpath(Path path)(Code) | | Returns the actual path name.
|
rename | public static boolean rename(Env env, StringValue from, StringValue to)(Code) | | Renames a file
Parameters: fromPath - the path to change to Parameters: toPath - the path to change to |
rewinddir | public static void rewinddir(Env env, DirectoryValue dir)(Code) | | Rewinds the directory listing
Parameters: dirV - the directory resource |
scandir | public static Value scandir(Env env, String fileName, int order, Value context)(Code) | | Scan the directory
Parameters: fileName - the directory |
set_file_buffer | public static int set_file_buffer(Env env, BinaryOutput stream, int bufferSize)(Code) | | Sets the write buffer.
|
symlink | public boolean symlink(Env env, Path source, Path destination)(Code) | | Creates a symlink
|
tempnam | public static Value tempnam(Env env, Path dir, String prefix)(Code) | | Creates a temporary file.
|
touch | public static boolean touch(Path path, int time, int atime)(Code) | | sets the time to the current time
|
umask | public static int umask(Env env, int mask)(Code) | | umask call
|
|
|