mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
ディレクトリ/ファイルの判定メソッドを実装
This commit is contained in:
parent
9e5b2dad46
commit
0dced5d0dc
|
@ -78,13 +78,23 @@ public class FileManagerImpl implements FileManager {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDirectory() {
|
public boolean isDirectory() {
|
||||||
|
if (this.isExist()) {
|
||||||
|
File file = this.path.toFile();
|
||||||
|
return file.isDirectory();
|
||||||
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isFile() {
|
public boolean isFile() {
|
||||||
|
if (this.isExist()) {
|
||||||
|
File file = this.path.toFile();
|
||||||
|
return file.isFile();
|
||||||
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadable() {
|
public boolean isReadable() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user