| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final String | |
| private static final int | |
| private static final Logger | |
| private volatile FS_POSIX. | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public boolean | canExecute(File
abstract path to test. f)Implements abstract org. Determine if the file is executable (or not). |
| public FS. | Returns: LockToken this lock token must be held until the file is no longer neededthe unique file to be created atomically file)Overrides org. Create a new file. |
| protected File | discoverGitExe()
Implements abstract org. Discover the path to the Git executable. |
| public FS. | getAttributes(File
a path)java. object.Overrides org. Get the file attributes we care for. |
| public boolean | isCaseSensitive()
Implements abstract org. Is this file system case sensitive |
| public FS | newInstance()
Implements abstract org. Create a new instance of the same type of FS. |
| public File | normalize(File
a file)java. object.Overrides org. Normalize the unicode path to composed form. |
| public String | normalize(String
path name name)Overrides org. Normalize the unicode path to composed form. |
| private static int | |
| public boolean | retryFailedLockFileCommit()
Implements abstract org. Does this file system have problems with atomic renames? |
| public ProcessResult | runHookIfPresent(Repository
The repository for which a hook should be run. repository, String The name of the hook to be executed. hookName, String[] Arguments to pass to this hook. Cannot be args, OutputStream null,
but can be an empty array.A print stream on which to redirect the hook's stdout. Can be
outRedirect, OutputStream null, in which case the hook's standard output
will be lost.A print stream on which to redirect the hook's stderr. Can be
errRedirect, String null, in which case the hook's standard error
will be lost.A string to pass on to the standard input of the hook. May be
stdinArgs)null.Overrides org. Checks whether the given hook is defined for the given repository, then runs it with the given arguments. |
| public ProcessBuilder | runInShell(String
command to execute. This string should originate from the
end-user, and thus is platform specific. cmd, String[] arguments to pass to command. These should be protected from
shell evaluation. args)Implements abstract org. Initialize a ProcessBuilder to run a command using the system shell. |
| public boolean | setExecute(File
path to modify the executable status of. f, boolean true to enable execution; false to disable it. canExecute)Implements abstract org. Set a file to be executable by the user. |
| public void | setHidden(File
a path, boolean java. object.whether to set the file hidden hidden)Overrides org. Set the hidden attribute for file whose name starts with a period. |
| public void | setUmask(int
mask to apply when creating files. umask)Set the umask, overriding any value observed from the shell. |
| pack-priv String | shellQuote(String
the String to quote cmd)Overrides org. Quote a string (such as a file system path obtained from a Java
|
| public boolean | supportsAtomicCreateNewFile()
Overrides org. Does this file system support atomic file creation via java.io.File#createNewFile()? |
| public boolean | supportsExecute()
Implements abstract org. Does this operating system and JRE support the execute flag on files? |
| private static FS. | |
| private int | |
| private static String |
| CAN_HARD_LINK | back to summary |
|---|---|
| private static final Map<FileStore, Boolean> CAN_HARD_LINK | |
| DEFAULT_GIT_LOCATION | back to summary |
|---|---|
| private static final String DEFAULT_GIT_LOCATION | |
| DEFAULT_UMASK | back to summary |
|---|---|
| private static final int DEFAULT_UMASK | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| supportsAtomicFileCreation | back to summary |
|---|---|
| private volatile FS_POSIX. | |
| umask | back to summary |
|---|---|
| private volatile int umask | |
| FS_POSIX | back to summary |
|---|---|
| protected FS_POSIX() Default constructor. | |
| FS_POSIX | back to summary |
|---|---|
| protected FS_POSIX(FS src) Constructor
| |
| apply | back to summary |
|---|---|
| private static void apply(Set<PosixFilePermission> set, int umask, PosixFilePermission perm, int test) | |
| canExecute | back to summary |
|---|---|
| public boolean canExecute(File f) Implements abstract org. Doc from org. Determine if the file is executable (or not). 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 | |
| createNewFileAtomic | back to summary |
|---|---|
| public FS. Overrides org. Doc from org. Create a new file. See
An implementation of the File#createNewFile() semantics which can create
a unique file atomically also on NFS. If the config option
| |
| discoverGitExe | back to summary |
|---|---|
| protected File discoverGitExe() Implements abstract org. Doc from org. Discover the path to the Git executable. | |
| getAttributes | back to summary |
|---|---|
| public FS. Overrides org. Doc from org. Get the file attributes we care for.
| |
| isCaseSensitive | back to summary |
|---|---|
| public boolean isCaseSensitive() Implements abstract org. Doc from org. Is this file system case sensitive
| |
| newInstance | back to summary |
|---|---|
| public FS newInstance() Implements abstract org. Doc from org. Create a new instance of the same type of FS. | |
| normalize | back to summary |
|---|---|
| public File normalize(File file) Overrides org. Doc from org. Normalize the unicode path to composed form.
| |
| normalize | back to summary |
|---|---|
| public String normalize(String name) Overrides org. Doc from org. Normalize the unicode path to composed form. | |
| readUmask | back to summary |
|---|---|
private static int readUmask()
| |
| retryFailedLockFileCommit | back to summary |
|---|---|
| public boolean retryFailedLockFileCommit() Implements abstract org. Doc from org. Does this file system have problems with atomic renames?
| |
| runHookIfPresent | back to summary |
|---|---|
| public ProcessResult runHookIfPresent(Repository repository, String hookName, String[] args, OutputStream outRedirect, OutputStream errRedirect, String stdinArgs) throws JGitInternalException Overrides org. Doc from org. Checks whether the given hook is defined for the given repository, then runs it with the given arguments.
| |
| runInShell | back to summary |
|---|---|
| public ProcessBuilder runInShell(String cmd, String[] args) Implements abstract org. Doc from org. Initialize a ProcessBuilder to run a command using the system shell.
| |
| setExecute | back to summary |
|---|---|
| public boolean setExecute(File f, boolean canExecute) Implements abstract org. Doc from org. Set a file to be executable by the user. 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. | |
| setHidden | back to summary |
|---|---|
| public void setHidden(File path, boolean hidden) throws IOException Overrides org. Doc from org. Set the hidden attribute for file whose name starts with a period.
| |
| setUmask | back to summary |
|---|---|
| public void setUmask(int umask) Set the umask, overriding any value observed from the shell.
| |
| shellQuote | back to summary |
|---|---|
| pack-priv String shellQuote(String cmd) Overrides org. Doc from org. Quote a string (such as a file system path obtained from a Java
This default implementation returns the string unchanged. | |
| supportsAtomicCreateNewFile | back to summary |
|---|---|
| public boolean supportsAtomicCreateNewFile() Overrides org. Doc from org. Does this file system support atomic file creation via java.io.File#createNewFile()? In certain environments (e.g. on NFS) it is not guaranteed that when two file system clients run createNewFile() in parallel only one will succeed. In such cases both clients may think they created a new file.
| |
| supportsExecute | back to summary |
|---|---|
| public boolean supportsExecute() Implements abstract org. Doc from org. Does this operating system and JRE support the execute flag on files?
| |
| token | back to summary |
|---|---|
| private static FS. | |
| umask | back to summary |
|---|---|
| private int umask() | |
| uniqueLinkPath | back to summary |
|---|---|
| private static String uniqueLinkPath(File file) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FS_POSIX. | |
| public static final FS_POSIX. | |
| public static final FS_POSIX. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FS_POSIX. | |
| public static FS_POSIX. |
| NOT_SUPPORTED | back to summary |
|---|---|
| public static final FS_POSIX. | |
| SUPPORTED | back to summary |
|---|---|
| public static final FS_POSIX. | |
| UNDEFINED | back to summary |
|---|---|
| public static final FS_POSIX. | |
| AtomicFileCreation | back to summary |
|---|---|
| private AtomicFileCreation() | |
| valueOf | back to summary |
|---|---|
| public static FS_POSIX. | |
| values | back to summary |
|---|---|
| public static FS_POSIX. | |