Note: The following information only applies to Surround SCM 2016.0 and earlier.
You can mount a WebDAV directory as a Linux filesystem path.
- Download davfs from your Linux distribution or http://savannah.nongnu.org/projects/davfs2.
- Create a local directory as the root path of the WebDAV file system. For example: /mnt/dav
- Use the mount.davfs command to mount the WebDAV CGI to a local directory. For example:
mount.davfs http://localhost/cgi/sscmdav.cgi /mnt/dav
- Change (cd) to the local directory to access Surround SCM branches, repositories, or files.
Keep the following in mind:
- Some file editors create temporary files to save your data then try to overwrite the existing file with the temporary file. Surround SCM does not support this functionality. To edit files using WebDAV, copy the file to a local directory, edit the file, then copy the file back to the WebDAV directory.
- davfs 0.2.4 cannot connect to the WebDAV CGI running on an Apache web server.
- davfs 0.2.3 and earlier does not release locks when you edit files. Files are permanently locked and checked out exclusively in Surround SCM. To release locks after every PUT operation, add the following line to the sscmdav.xml configuration file within any section:
- Input/output errors can occur when adding or editing files in davfs 0.2.3 and earlier because of locks on empty files. Use the –o nolocks=1 option on the mount command to ignore empty file locks. For example:
mount.davfs http://localhost/cgi/sscmdav.cgi /mnt/dav -o nolocks=1