Files.splitPath {SciServer}R Documentation

Split path into components

Description

Splits a path of the form rootVolume/userVolumeOwner/userVolume/relativePath/... into its 4 components: rootVolume, userVolumeOwner, userVolume, and relativePath.

Usage

Jobs.splitPath(path)

Arguments

path

file system path (string), starting from the root volume level. Example: rootVolume/userVolumeOwner/userVolume/relativePath...

Value

a string vector containing the four components: (rootVolume, userVolumeOwner, userVolume, relativePath)

Author(s)

Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>

References

http://www.sciserver.org
http://apps.sciserver.org
http://apps.sciserver.org/dashboard/files
http://www.github.com/sciserver/SciScript-R

See Also

Files.getFileServices, Files.getFileServiceFromName

Examples

splitPath  = Files.splitPath("Storage/myUserName/persistent/myFolder/myFile")

[Package SciServer version 2.0.0 Index]