mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
isExistの実装を変更
This commit is contained in:
parent
b3a4207762
commit
a887446d21
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
public interface FileManager {
|
||||
|
||||
File getFileRef();
|
||||
boolean isExist();
|
||||
boolean isExist(String name) throws IOException;
|
||||
boolean isDirectory();
|
||||
boolean isFile();
|
||||
boolean isWritable();
|
||||
|
|
|
@ -71,9 +71,9 @@ public class FileManagerImpl implements FileManager {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean isExist() {
|
||||
File file = this.path.toFile();
|
||||
return file.exists();
|
||||
public boolean isExist(String name) throws IOException {
|
||||
Path resolvedPath = this.resolveStringPath(name);
|
||||
return Files.exists(resolvedPath);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user