org.sonatype.gshell.file
Class FileSystemAccessImpl
java.lang.Object
org.sonatype.gshell.file.FileSystemAccessImpl
- All Implemented Interfaces:
- FileSystemAccess
public class FileSystemAccessImpl
- extends Object
- implements FileSystemAccess
FileSystemAccess component.
- Since:
- 2.3
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemAccessImpl
@Inject
public FileSystemAccessImpl(javax.inject.Provider<Variables> variables)
resolveDir
public File resolveDir(String name)
throws IOException
- Specified by:
resolveDir in interface FileSystemAccess
- Throws:
IOException
getShellHomeDir
public File getShellHomeDir()
throws IOException
- Specified by:
getShellHomeDir in interface FileSystemAccess
- Throws:
IOException
getUserDir
public File getUserDir()
throws IOException
- Specified by:
getUserDir in interface FileSystemAccess
- Throws:
IOException
getUserHomeDir
public File getUserHomeDir()
throws IOException
- Specified by:
getUserHomeDir in interface FileSystemAccess
- Throws:
IOException
resolveFile
public File resolveFile(File baseDir,
String path)
throws IOException
- Specified by:
resolveFile in interface FileSystemAccess
- Throws:
IOException
resolveFile
public File resolveFile(String path)
throws IOException
- Specified by:
resolveFile in interface FileSystemAccess
- Throws:
IOException
hasChildren
public boolean hasChildren(File file)
- Specified by:
hasChildren in interface FileSystemAccess
Copyright © 2008-2011 Sonatype. All Rights Reserved.