Using the DAVTree Utility to Manage WebDAV Content

About the DAVTree Utility

The DAVTree utility is a stand-alone Java application that provides a tree view of WebDAV resources. The utility enables you to manipulate content by copying files to a WebDAV repository or by creating text files such as forms and templates.
The utility presents information in a tree view. When you select a resource item in the tree on the left side of the window, the WebDAV properties for the resource are displayed on the right side.
Here is an example DAVTree interface:
DAVTree view of WebDAV resources
In the interface, you see only the content that you are authorized to see.

Start the Utility and Connect to a WebDAV Location

To use this utility, follow these steps:
  1. Run the following command on Windows:
    SAS-config-dir\Levn\Web\Utilities\DAVTree.bat
    On UNIX and z/OS:
    SAS-config-dir/Levn/Web/Utilities/DAVTree.sh.
    The DAVTree utility appears.
  2. Select Filethen selectOpen.
    The DAV Location dialog box appears.
  3. In the URL field, enter the URL for a WebDAV location. For example, enter the following URL and substitute the server name and port number of your WebDAV server (SAS Content Server):
    http://server:port/SASContentServer/repository/default/
  4. If the WebDAV server was set up with a proxy, enter the proxy host and port.
  5. Click OK. You are prompted for credentials.
  6. Enter your administrator credentials in the logon dialog box.
You can later connect to a different WebDAV location by repeating steps 2 through 6 and providing the URL for the new location.

Add Resources to WebDAV

Copy Files to DAVTree

You can copy both text files and binary files to the repository. To copy a file, click and drag the file from the file system to a folder in the DAVTree interface. This action can be performed on Windows systems and on UNIX systems that provide a graphical interface.
Note: To delete a resource, select the resource in the tree and then select Editthen selectDelete. You are prompted to confirm the deletion.

Create a Text File

  1. Position the cursor on the folder where you want to create the text file.
  2. Select Editthen selectAdd.
    You are prompted to confirm the action, and then an Add dialog box appears. Here is an example dialog box with data entered in the fields.
    Add dialog box
  3. Select Resource.
  4. In the field to the left of the Resource radio button, enter the name of the text file. If a file already exists with the name that you provide, the file is overwritten.
    The example shows a file with the name myFile.txt.
  5. In the field below the Resource radio button, enter the text that you want the file to contain. Press ENTER to start a new line.
    The example shows a file that contains the text string “Contents of myFile.txt.”
  6. If you want to define a custom WebDAV property, click New property. Two text fields appear in the gray properties panel. In the left field, add the property name. In the right field, enter the property value.
  7. Click OK.

Create a Folder

  1. Position the cursor on the folder where you want to create the new folder.
  2. Select Editthen selectAdd.
    You are prompted to confirm the action, and then an Add dialog box appears.
  3. Select Collection.
  4. In the field to the left of the Collection radio button, enter the name that you want to give the folder.
  5. Click OK.

Edit a Text File in WebDAV

To edit a text file, follow these steps:
  1. Right-click the text file and select Edit. The Edit File dialog box appears and displays the contents of the file.
  2. Make your changes to the text.
  3. Click Save.

Copy or Move a File in WebDAV

To move a file from one location to another in WebDAV, in DAVTree click and drag the file to the desired location.
To copy rather than move a file, press and hold the CTRL key while dragging.

Advanced Features

The DAVTree utility can be used as a diagnostic tool. The utility provides features such as locking files, versioning files, and modifying WebDAV properties.
CAUTION:
These are advanced WebDAV functions.
These advanced WebDAV functions, which are not covered in this documentation, should be performed only by someone who has WebDAV expertise.