public class AdvancedFilesystem extends BasicFilesystem
| Modifier and Type | Field and Description |
|---|---|
static java.util.regex.Pattern |
NOT_DIRECTORY_MSG |
descriptors, FIRST_FD, nextFd| Constructor and Description |
|---|
AdvancedFilesystem() |
| Modifier and Type | Method and Description |
|---|---|
void |
chmod(java.io.File f,
java.lang.String origPath,
int mode,
int umask,
boolean noFollow) |
void |
chown(java.io.File file,
java.lang.String origPath,
java.lang.String uid,
java.lang.String gid,
boolean noFollow) |
void |
ftruncate(int fd,
long len) |
void |
link(java.io.File targetFile,
java.lang.String targetPath,
java.io.File linkFile,
java.lang.String linkPath) |
void |
mkdir(java.io.File file,
java.lang.String origPath,
int mode,
int umask)
Create the directory atomically and with the right permissions.
|
int |
open(java.io.File fp,
java.lang.String origPath,
int flags,
int mode,
int umask)
In Java 7 we can open the file in one operation, which makes the atomic operations that NPM
depends on actually work.
|
java.util.List<java.lang.String> |
readdir(java.io.File f,
java.lang.String origPath) |
java.lang.String |
readlink(java.io.File file,
java.lang.String origPath) |
void |
rename(java.io.File oldFile,
java.lang.String oldPath,
java.io.File newFile,
java.lang.String newPath)
Use Files to attempt an atomic rename.
|
void |
rmdir(java.io.File file,
java.lang.String origPath) |
FileStats |
stat(java.io.File f,
java.lang.String origPath,
boolean noFollow) |
void |
symlink(java.io.File destFile,
java.lang.String destPath,
java.io.File srcFile,
java.lang.String srcPath) |
void |
unlink(java.io.File file,
java.lang.String origPath)
Unlink and return the exactly-correct error messages.
|
void |
utimes(java.io.File f,
java.lang.String origPath,
long atime,
long mtime) |
cleanup, close, ensureHandle, ensureRegularFileHandle, fchmod, fchown, fstat, fsync, futimes, getPosition, read, updatePosition, writepublic int open(java.io.File fp,
java.lang.String origPath,
int flags,
int mode,
int umask)
throws OSException
open in class BasicFilesystemOSExceptionpublic void ftruncate(int fd,
long len)
throws OSException
ftruncate in class BasicFilesystemOSExceptionpublic void rename(java.io.File oldFile,
java.lang.String oldPath,
java.io.File newFile,
java.lang.String newPath)
throws OSException
rename in class BasicFilesystemOSExceptionpublic void unlink(java.io.File file,
java.lang.String origPath)
throws OSException
unlink in class BasicFilesystemOSExceptionpublic void rmdir(java.io.File file,
java.lang.String origPath)
throws OSException
rmdir in class BasicFilesystemOSExceptionpublic java.util.List<java.lang.String> readdir(java.io.File f,
java.lang.String origPath)
throws OSException
readdir in class BasicFilesystemOSExceptionpublic void mkdir(java.io.File file,
java.lang.String origPath,
int mode,
int umask)
throws OSException
mkdir in class BasicFilesystemOSExceptionpublic FileStats stat(java.io.File f, java.lang.String origPath, boolean noFollow) throws OSException
stat in class BasicFilesystemOSExceptionpublic void utimes(java.io.File f,
java.lang.String origPath,
long atime,
long mtime)
throws OSException
utimes in class BasicFilesystemOSExceptionpublic void chmod(java.io.File f,
java.lang.String origPath,
int mode,
int umask,
boolean noFollow)
throws OSException
chmod in class BasicFilesystemOSExceptionpublic void chown(java.io.File file,
java.lang.String origPath,
java.lang.String uid,
java.lang.String gid,
boolean noFollow)
throws OSException
chown in class BasicFilesystemOSExceptionpublic void link(java.io.File targetFile,
java.lang.String targetPath,
java.io.File linkFile,
java.lang.String linkPath)
throws OSException
link in class BasicFilesystemOSExceptionpublic void symlink(java.io.File destFile,
java.lang.String destPath,
java.io.File srcFile,
java.lang.String srcPath)
throws OSException
symlink in class BasicFilesystemOSExceptionpublic java.lang.String readlink(java.io.File file,
java.lang.String origPath)
throws OSException
readlink in class BasicFilesystemOSExceptionCopyright © 2018 Apigee Corporation. All Rights Reserved.