public class FS_Win32 extends FS
FS.Attributes, FS.ExecutionResult, FS.FSFactory| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private java.lang.Boolean |
supportSymlinks |
| Modifier | Constructor and Description |
|---|---|
|
FS_Win32()
Constructor
|
protected |
FS_Win32(FS src)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute(java.io.File f)
Determine if the file is executable (or not).
|
private void |
detectSymlinkSupport() |
protected java.io.File |
discoverGitExe()
Discover the path to the Git executable.
|
FS.Attributes |
getAttributes(java.io.File path)
Get the file attributes we care for.
|
boolean |
isCaseSensitive()
Is this file system case sensitive
|
FS |
newInstance()
Create a new instance of the same type of FS.
|
boolean |
retryFailedLockFileCommit()
Does this file system have problems with atomic renames?
|
java.lang.ProcessBuilder |
runInShell(java.lang.String cmd,
java.lang.String[] args)
Initialize a ProcessBuilder to run a command using the system shell.
|
boolean |
setExecute(java.io.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?
|
boolean |
supportsSymlinks()
Does this operating system and JRE supports symbolic links.
|
protected java.io.File |
userHomeImpl()
Determine the user's home directory (location where preferences are).
|
createNewFile, createSymLink, delete, detect, detect, discoverGitSystemConfig, execute, exists, findHook, getGitSystemConfig, internalRunHookIfPresent, isDirectory, isFile, isHidden, isSymLink, lastModified, length, normalize, normalize, readPipe, readPipe, readSymLink, relativize, resolve, resolveGrandparentFile, runHookIfPresent, runHookIfPresent, runProcess, runProcess, searchPath, setGitSystemConfig, setHidden, setLastModified, setUserHome, supportsAtomicCreateNewFile, userHomeprivate static final org.slf4j.Logger LOG
private volatile java.lang.Boolean supportSymlinks
public FS_Win32()
protected FS_Win32(FS src)
src - instance whose attributes to copypublic FS newInstance()
newInstance in class FSpublic boolean supportsExecute()
supportsExecute in class FSpublic boolean canExecute(java.io.File f)
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 FSf - abstract path to test.public boolean setExecute(java.io.File f,
boolean canExec)
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 FSf - path to modify the executable status of.canExec - true to enable execution; false to disable it.public boolean isCaseSensitive()
isCaseSensitive in class FSpublic boolean retryFailedLockFileCommit()
retryFailedLockFileCommit in class FSprotected java.io.File discoverGitExe()
discoverGitExe in class FSnull if it cannot be
determined.protected java.io.File userHomeImpl()
userHomeImpl in class FSpublic java.lang.ProcessBuilder runInShell(java.lang.String cmd,
java.lang.String[] args)
runInShell in class FScmd - 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.public boolean supportsSymlinks()
supportsSymlinks in class FSprivate void detectSymlinkSupport()
public FS.Attributes getAttributes(java.io.File path)
getAttributes in class FSpath - a File object.