/** * Constructor * * @param baseDirectory * the directory where the file manager should point initially; * will be created if not existing * @param readOnly * if false, the directory manager will attempt to create * directories when changing to a location that does not exist * @throws IOException * if there was a problem creating the directory */ public DirectoryManagerImpl(Path baseDirectory, Boolean readOnly) throws IOException { this.directory = baseDirectory; this.readOnly = readOnly; createDirectory(this.directory); }
/** * Constructor * * @param baseDirectory * the directory where the file manager should point initially; * will be created if not existing * @param readOnly * if false, the directory manager will attempt to create * directories when changing to a location that does not exist * @throws IOException * if there was a problem creating the directory */ public DirectoryManagerImpl(Path baseDirectory, Boolean readOnly) throws IOException { this.directory = baseDirectory; this.readOnly = readOnly; createDirectory(this.directory); }