Hopp til hovedinnhold

//ERDDAP/com.cohort.util/ScriptString2/isRemote

isRemote

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

This returns true if the dir starts with http://, https://, ftp://, sftp://, or smb://. This is like isRemote, but returns false for "file://...". WARNING: AWS S3 URLs are considered remote here, but often they should be treated as local.

Return

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