読み込み/書き込み権限の確認を実装 WIP

This commit is contained in:
r-ca 2024-01-09 12:23:37 +09:00
parent 37497cb1ea
commit 3b861e3a07
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

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