public class FS_Win32_Cygwin extends FS_Win32
FS.Attributes, FS.FSFactory| Modifier | Constructor and Description |
|---|---|
|
FS_Win32_Cygwin()
Constructor
|
protected |
FS_Win32_Cygwin(FS src)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isCygwin() |
FS |
newInstance() |
File |
resolve(File dir,
String pn)
Resolve this file to its actual path name that the JRE can use.
|
ProcessBuilder |
runInShell(String cmd,
String[] args)
Initialize a ProcesssBuilder to run a command using the system shell.
|
protected File |
userHomeImpl()
Determine the user's home directory (location where preferences are).
|
canExecute, discoverGitPrefix, isCaseSensitive, retryFailedLockFileCommit, setExecute, supportsExecutecreateSymLink, delete, detect, detect, exists, getAttributes, gitPrefix, isDirectory, isFile, isHidden, isSymLink, lastModified, length, normalize, normalize, readPipe, readSymLink, searchPath, setGitPrefix, setHidden, setLastModified, setUserHome, supportsSymlinks, userHomepublic FS_Win32_Cygwin()
protected FS_Win32_Cygwin(FS src)
src - instance whose attributes to copypublic static boolean isCygwin()
public FS newInstance()
newInstance in class FS_Win32public File resolve(File dir, String pn)
FSThis method can be relatively expensive. Computing a translation may require forking an external process per path name translated. Callers should try to minimize the number of translations necessary by caching the results.
Not all platforms and JREs require path name translation. Currently only Cygwin on Win32 require translation for Cygwin based paths.
protected File userHomeImpl()
FSuserHomeImpl in class FS_Win32public ProcessBuilder runInShell(String cmd, String[] args)
FSrunInShell in class FS_Win32cmd - command to execute. This string should originate from the
end-user, and thus is platform specific.args - arguments to pass to command. These should be protected from
shell evaluation.Copyright © 2014. All rights reserved.