public class FS_Win32 extends FS
FS.FSFactory
Modifier | Constructor and Description |
---|---|
|
FS_Win32()
Constructor
|
protected |
FS_Win32(FS src)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(File f)
Determine if the file is executable (or not).
|
protected File |
discoverGitPrefix() |
boolean |
isCaseSensitive()
Is this file system case sensitive
|
FS |
newInstance() |
boolean |
retryFailedLockFileCommit()
Does this file system have problems with atomic renames?
|
ProcessBuilder |
runInShell(String cmd,
String[] args)
Initialize a ProcesssBuilder to run a command using the system shell.
|
boolean |
setExecute(File f,
boolean canExec)
Set a file to be executable by the user.
|
boolean |
supportsExecute()
Does this operating system and JRE support the execute flag on files?
|
protected File |
userHomeImpl()
Determine the user's home directory (location where preferences are).
|
createSymLink, detect, detect, exists, gitPrefix, isDirectory, isFile, isHidden, isSymLink, lastModified, length, readPipe, readSymLink, resolve, searchPath, setGitPrefix, setHidden, setLastModified, setUserHome, supportsSymlinks, userHome
public FS_Win32()
protected FS_Win32(FS src)
src
- instance whose attributes to copypublic FS newInstance()
newInstance
in class FS
public boolean supportsExecute()
FS
supportsExecute
in class FS
public boolean canExecute(File f)
FS
Not all platforms and JREs support executable flags on files. If the feature is unsupported this method will always return false.
If the platform supports symbolic links and f
is a symbolic link
this method returns false, rather than the state of the executable flags
on the target file.
canExecute
in class FS
f
- abstract path to test.public boolean setExecute(File f, boolean canExec)
FS
Not all platforms and JREs support executable flags on files. If the feature is unsupported this method will always return false and no changes will be made to the file specified.
setExecute
in class FS
f
- path to modify the executable status of.canExec
- true to enable execution; false to disable it.public boolean isCaseSensitive()
FS
isCaseSensitive
in class FS
public boolean retryFailedLockFileCommit()
FS
retryFailedLockFileCommit
in class FS
protected File discoverGitPrefix()
discoverGitPrefix
in class FS
protected File userHomeImpl()
FS
userHomeImpl
in class FS
public ProcessBuilder runInShell(String cmd, String[] args)
FS
runInShell
in class FS
cmd
- 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 © 2013. All Rights Reserved.