replace MyFile with RequestObject obj

This commit is contained in:
Roberto Cirillo 2022-11-29 17:09:02 +01:00
parent bbfabd37d9
commit 423a69b52a
1 changed files with 2 additions and 2 deletions

View File

@ -315,8 +315,8 @@ public class MongoOperationManager extends TransportManager{
public boolean exist(String remotePath){
boolean isPresent=false;
if(logger.isDebugEnabled())
logger.debug("MongoDB - get Size for pathServer: "+remotePath);
GridFSDBFile f = mongoPrimaryInstance.retrieveRemoteDescriptor(remotePath, null, true);
logger.debug("MongoDB - check if file exist: "+remotePath);
GridFSDBFile f = mongoPrimaryInstance.retrieveRemoteDescriptor(remotePath, null, false);
if(f!=null){
isPresent=true;
}