mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 17:00:48 +01:00
Add exists() to java client
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user