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.

Note:When you copy a folder path, only the path for the folder is copied, not the paths for the files within the folder.

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 File Path from the pop-up menu.
To copy 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 folder—Right-click the folder, and select Copy Folder Path from the pop-up menu.
To copy paths for multiple folders—Select the folders (using the Ctrl or Shift key), right-click anywhere in the group, and select Copy Paths from the pop-up menu.

When selecting multiple codebase items to copy, select only all files or all folders. Do not select a combination of files and folders. If you do select a combination, the Copy Paths option is disabled. Additionally, you cannot select the base node for a Scan Server or a remote scan agent for this function.

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