Add exists() to java client

This commit is contained in:
Jérôme Barotin
2021-05-07 09:24:24 +02:00
parent 9b5f54e367
commit a46be0ca56
2 changed files with 12 additions and 1 deletions

View File

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