mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
ディレクトリ/ファイルの判定メソッドを実装
This commit is contained in:
1 file changed
+12
-2
@@ -78,12 +78,22 @@ public class FileManagerImpl implements FileManager {
|
||||
|
||||
@Override
|
||||
public boolean isDirectory() {
|
||||
return false;
|
||||
if (this.isExist()) {
|
||||
File file = this.path.toFile();
|
||||
return file.isDirectory();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFile() {
|
||||
return false;
|
||||
if (this.isExist()) {
|
||||
File file = this.path.toFile();
|
||||
return file.isFile();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user