Add exists() to java client

This commit is contained in:
Jérôme Barotin committed 2021-05-07 09:33:03 +02:00
1 parent 9b5f54e367
commit a46be0ca56
2 files changed
+12 -1

No files matched your search

@@ -126,6 +126,11 @@ public class FilerClient extends FilerGrpcClient {
}
public boolean exists(String path){
File pathFile = new File(path);
return lookupEntry(pathFile.getParent(), pathFile.getName()) != null;
}
public boolean rm(String path, boolean isRecursive, boolean ignoreRecusiveError) {
File pathFile = new File(path);