public class Directories
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dataHomeDirectory |
private java.lang.String |
os |
private java.lang.String |
projectName |
Constructor and Description |
---|
Directories(java.lang.String projectName)
Constructor with projectName parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
askOpenDataHomeDirectory(java.lang.String subdir,
java.util.Scanner scanner)
Asks the user to choose opening dataHomeDirectory or not.
|
void |
createSubdir(java.lang.String subdir)
Create a subdirectory.
|
java.lang.String |
getDataHomeDirectory()
Getter for dataHomeDirectory.
|
private void |
openDataHomeDirectory(java.lang.String subdir)
Opens dataHomeDirectory if supported.
|
private void |
setDataHomeDirectory()
Setter for dataHomeDirectory.
|
private java.lang.String projectName
private java.lang.String dataHomeDirectory
private java.lang.String os
public Directories(java.lang.String projectName)
projectName
- name of the projectprivate void setDataHomeDirectory()
public void createSubdir(java.lang.String subdir)
subdir
- Name of subdirectory to createpublic java.lang.String getDataHomeDirectory()
private void openDataHomeDirectory(java.lang.String subdir)
subdir
- Subdir to open (optional)public void askOpenDataHomeDirectory(java.lang.String subdir, java.util.Scanner scanner)
subdir
- subdirectory to open (optional)scanner
- Scanner to use for reading input