ディレクトリ/ファイルの判定メソッドを実装

This commit is contained in:
r-ca 2024-01-09 12:25:25 +09:00
parent 9e5b2dad46
commit 0dced5d0dc
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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