跳转到主内容

//ERDDAP/com.cohort.util/ScriptString2/isTrulyRemote

isTrulyRemote

[JVM]
open fun isTrulyRemote(dir: String): Boolean

This returns true if the dir starts with http://, https://, ftp://, sftp://, or smb://, but not if it's an AWS S3 URL. This is like isRemote, but returns false for "file://...". NOTE: AWS S3 URLs are considered local here, but sometimes they should be treated as local.

Return

true if the dir is remote (but not an AWS S3 URL) (e.g., a URL other than file://) If dir is null or "", this returns false.