public class FileSystemAccessImpl extends Object implements FileSystemAccess
FileSystemAccess
component.Constructor and Description |
---|
FileSystemAccessImpl(javax.inject.Provider<Variables> variables) |
Modifier and Type | Method and Description |
---|---|
File |
getShellHomeDir() |
File |
getUserDir() |
File |
getUserHomeDir() |
boolean |
hasChildren(File file) |
File |
resolveDir(String name) |
File |
resolveFile(File baseDir,
String path) |
File |
resolveFile(String path) |
@Inject public FileSystemAccessImpl(javax.inject.Provider<Variables> variables)
public File resolveDir(String name) throws IOException
resolveDir
in interface FileSystemAccess
IOException
public File getShellHomeDir() throws IOException
getShellHomeDir
in interface FileSystemAccess
IOException
public File getUserDir() throws IOException
getUserDir
in interface FileSystemAccess
IOException
public File getUserHomeDir() throws IOException
getUserHomeDir
in interface FileSystemAccess
IOException
public File resolveFile(File baseDir, String path) throws IOException
resolveFile
in interface FileSystemAccess
IOException
public File resolveFile(String path) throws IOException
resolveFile
in interface FileSystemAccess
IOException
public boolean hasChildren(File file)
hasChildren
in interface FileSystemAccess
Copyright © 2008-2013 Sonatype. All Rights Reserved.