Copying Codebase File and Folder Paths

You can copy the complete paths of files and folders listed in Codebase Files or File Search Results pane, enabling you to paste accurate path information to other parts of the project (for example, to the Audit Notes field), between projects, or in personal locations. The following describes the format in which the paths are copied:

The output for a file-path copy uses the format <alias>:<relativeFilePath>, where <alias> is the meaningful name given to a scanner (Scan Server or remote scan agent) to represent its scan-root container, and <relativeFilePath> is the file path relative to the absolute scan-root path on host instance. For example, if you copy the codebase file agpl-3.0.txt, located directly under the scan folder ePortal-1.3, which in turn is directly under the scan-root path for the Scan Server whose alias is “EP_remote”, the output for the copy is EP_remote:ePortal-1.3/agpl-3.0.txt.
Likewise, the output for a folder-path copy uses a similar format, <alias>:<relativeFolderPath>. For example, if you copy the src folder, located directly under the scan folder ePortal-1.3, which in turn is directly under the scan-root path for the Scan Server whose alias is “EP_remote”, the folder for the copy is EP_remote:ePortal-1.3/src.

To copy codebase file and folder paths, do the following:

1. Open the Analysis Workbench for the desired project. (For instructions, see Opening the Analysis Workbench.)
2. In the Codebase Files or File Search Results pane of the Analysis Workbench, perform any of these tasks to copy codebase file or folder paths to the operating system Clipboard:
To copy the path for a single file—Right-click the file, and select Copy Paths from the pop-up menu.
To copy the paths for multiple files—Select the files (using the Ctrl or Shift key), right-click anywhere in the group, and select Copy Paths from the pop-up menu.
To copy the path for a single collapsed folder—Right-click the collapsed folder, and select Copy Paths from the pop-up menu.
To copy the paths for multiple collapsed folders—Select the collapsed folders (using the Ctrl or Shift key), right-click anywhere in the group, and select Copy Paths from the pop-up menu.
To copy the paths for both selected folders and files—Select a combination of folders and files (using the Ctrl or Shift key), right-click anywhere in the group, and select Copy Paths from the pop-up menu. Files can be selected along with the both expanded and collapsed folders.
To copy the paths for a single expanded folder and its included sub folders and files—Right-click the expanded folder, and select Copy Paths from the pop-up menu. This action copies the path of the folder, along with the paths of all its sub folders and contained files.
To copy the paths for multiple expanded folders and their respective included sub folders and files—Select the expanded folders (using the Ctrl or Shift key), right-click anywhere in the group, and select Copy Paths from the pop-up menu. This action copies the paths of all selected folders, their respective sub folders, and contained files.

Note:The Copy Paths option in the pop-up menu is disabled for the Scan Server’s base node or scan agent’s base node.

3. Use Ctrl + v to paste the copied path or paths to the desired location.