mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
読み込み/書き込み権限の確認を実装 WIP
This commit is contained in:
parent
37497cb1ea
commit
3b861e3a07
|
@ -86,13 +86,15 @@ public class FileManagerImpl implements FileManager {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean isWritable() {
|
||||
return false;
|
||||
public boolean isReadable() {
|
||||
File file = this.path.toFile();
|
||||
return file.canRead();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReadable() {
|
||||
return false;
|
||||
public boolean isWritable() {
|
||||
File file = this.path.toFile();
|
||||
return file.canWrite();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user