View source: R/labkey.webdav.R
labkey.webdav.pathExists | R Documentation |
This will test if the supplied file/folder exists folder under the specified LabKey Server project using WebDAV.
labkey.webdav.pathExists(
baseUrl=NULL,
folderPath,
remoteFilePath,
fileSet='@files'
)
baseUrl |
a string specifying the |
folderPath |
a string specifying the |
remoteFilePath |
the path to test, relative to the LabKey folder root. |
fileSet |
(optional) the name of file server fileSet, which is typically "@files" (the default value for this argument). In some cases this might be "@pipeline" or "@fileset". |
This will test if the supplied file/folder exists folder under the specified LabKey Server project using WebDAV.
TRUE if the folder was created successfully
Ben Bimber, Ph.D.
labkey.webdav.get
,
labkey.webdav.put
,
labkey.webdav.mkDir
,
labkey.webdav.mkDirs
,
labkey.webdav.listDir
,
labkey.webdav.delete
,
labkey.webdav.downloadFolder
## Not run:
library(Rlabkey)
# Test folder
labkey.webdav.pathExists(
baseUrl="http://labkey/",
folderPath="home",
remoteFilePath="pathToTest"
)
# Test file
labkey.webdav.pathExists(
baseUrl="http://labkey/",
folderPath="home",
remoteFilePath="folder/fileToTest.txt"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.