一旦コメントアウト

This commit is contained in:
r-ca committed 2023-12-25 13:34:04 +09:00
1 parent 6a98deab83
commit 646627ac49
2 files changed
+25 -25

No files matched your search

@@ -20,8 +20,8 @@ public interface FileManager {
Bitmap loadBitmap(Path path); Bitmap loadBitmap(Path path);
void removeBitmap(Path path); void removeBitmap(Path path);
void saveFileAtCurrent(File file); // void saveFileAtCurrent(File file);
File getFile(Path path); // File getFile(Path path);
void removeFile(Path path); // void removeFile(Path path);
} }
@@ -104,27 +104,27 @@ public class FileManagerImpl implements FileManager {
} }
@Override // @Override
public void saveFileAtCurrent(File file) { // public void saveFileAtCurrent(File file) {
try { // try {
Files.copy(file.toPath(), currentDir.resolve(file.getName())); // Files.copy(file.toPath(), currentDir.resolve(file.getName()));
} catch (IOException e) { // } catch (IOException e) {
e.printStackTrace(); // e.printStackTrace();
} // }
} // }
//
@Override // @Override
public File getFile(Path path) { // public File getFile(Path path) {
// ファイルを取得する // // ファイルを取得する
return path.toFile(); // return path.toFile();
} // }
//
@Override // @Override
public void removeFile(Path path) { // public void removeFile(Path path) {
// ファイルを削除する // // ファイルを削除する
if (path.toFile().exists()) { // if (path.toFile().exists()) {
path.toFile().delete(); // Resultを返す? // path.toFile().delete(); // Resultを返す?
} // }
} // }
} }