public class FS_Win32_Java7Cygwin extends FS_Win32_Cygwin
FS.Attributes, FS.FSFactory| Modifier and Type | Method and Description |
|---|---|
void |
createSymLink(File path,
String target)
Create a symbolic link
|
void |
delete(File path)
Delete a file.
|
boolean |
exists(File path)
Tests if the path exists, in case of a symbolic link, true even if the
target does not exist
|
FS.Attributes |
getAttributes(File path) |
boolean |
isDirectory(File path)
Check if path is a directory.
|
boolean |
isFile(File path)
Examine if path represents a regular file.
|
boolean |
isHidden(File path) |
boolean |
isSymLink(File path) |
long |
lastModified(File path)
Get the last modified time of a file system object.
|
long |
length(File f)
Get the length of a file or link, If the OS/JRE supports symbolic links
it's the length of the link, else the length of the target.
|
FS |
newInstance() |
String |
readSymLink(File path)
Check if a file is a symbolic link and read it
|
void |
setHidden(File path,
boolean hidden)
Set the hidden attribute for file whose name starts with a period.
|
void |
setLastModified(File path,
long time)
Set the last modified time of a file system object.
|
boolean |
supportsSymlinks()
Does this operating system and JRE supports symbolic links.
|
isCygwin, resolve, runInShell, userHomeImplcanExecute, discoverGitPrefix, isCaseSensitive, retryFailedLockFileCommit, setExecute, supportsExecutedetect, detect, gitPrefix, normalize, normalize, readPipe, searchPath, setGitPrefix, setUserHome, userHomepublic FS newInstance()
newInstance in class FS_Win32_Cygwinpublic boolean supportsSymlinks()
FSsupportsSymlinks in class FSpublic boolean isSymLink(File path) throws IOException
isSymLink in class FSIOExceptionpublic long lastModified(File path) throws IOException
FSlastModified in class FSIOExceptionpublic void setLastModified(File path, long time) throws IOException
FSsetLastModified in class FSIOExceptionpublic void delete(File path) throws IOException
FSdelete in class FSIOException - this may be a Java7 subclass with detailed informationpublic long length(File f) throws IOException
FSlength in class FSIOExceptionpublic boolean exists(File path)
FSpublic boolean isDirectory(File path)
FSisDirectory in class FSpublic boolean isFile(File path)
FSpublic boolean isHidden(File path) throws IOException
isHidden in class FSIOExceptionpublic void setHidden(File path, boolean hidden) throws IOException
FSsetHidden in class FSIOExceptionpublic String readSymLink(File path) throws IOException
FSreadSymLink in class FSIOExceptionpublic void createSymLink(File path, String target) throws IOException
FScreateSymLink in class FSIOExceptionpublic FS.Attributes getAttributes(File path)
getAttributes in class FSCopyright © 2015. All rights reserved.