@param objectId object id @return true if the object exist
(String objectId)
| 110 | * @return true if the object exist |
| 111 | */ |
| 112 | public static boolean objectExists(String objectId) { |
| 113 | return FileUtil.isFile(Paths.get(ConstantVal.OBJECTS_DIR).resolve(objectId).toString()); |
| 114 | } |
| 115 | |
| 116 | public static void fetchObjectIfMissing(String objectId, String remoteDir) { |
| 117 | if (objectExists(objectId)) { |
no test coverage detected