agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/s3/S3Jcloud.java
/**
	 * Safe check for directory existence. This is used rather than the native jcloud check due to the
	 * spotty support for trailing characters and other delimiters in various implementations.
	 * @param resolvedPath resolved path within bucket
	 * @return true if the path is a directory marker, false otherwise
	 * @throws FileNotFoundException
	 * @throws RemoteDataException
	 */
Safe check for directory existence. This is used rather than the native jcloud check due to the
spotty support for trailing characters and other delimiters in various implementations.
@param resolvedPath resolved path within bucket
@return true if the path is a directory marker, false otherwise
@throws FileNotFoundException
@throws RemoteDataException
Safe check for directory existence . This is used rather than the native jcloud check due to the spotty support for trailing characters and other delimiters in various implementations . @param resolvedPath resolved path within bucket @return true if the path is a directory marker false otherwise @throws FileNotFoundException @throws RemoteDataException
protected boolean _directoryExists(String resolvedPath)
	throws FileNotFoundException, RemoteDataException {
		BlobMetadata md;
		try {
			if (StringUtils.isEmpty(resolvedPath)) {
				return true;
			}
			else {
				md = getFileMeta(resolvedPath);
				return (md != null && _isDirectoryMarker(md));
			}
		}
		catch (FileNotFoundException | RemoteDataException ignore) {}
		return false;
	}
protected boolean _directoryExists ( String resolvedPath ) throws FileNotFoundException , RemoteDataException { BlobMetadata md ; try { if ( StringUtils . isEmpty ( resolvedPath ) ) { return true ; } else { md = getFileMeta ( resolvedPath ) ; return ( md != null && _isDirectoryMarker ( md ) ) ; } } catch ( FileNotFoundException | RemoteDataException ignore ) { } return false ; }
Safe check for directory existence.
Safe check for directory existence .