Skip to content

Excluding files from upload

John Bradley edited this page Oct 11, 2017 · 8 revisions

.ddsignore files limit what is uploaded

Users can limit what is uploaded from a folder by creating a file named .ddsignore. This file contains a list of file/folder patterns that should be excluded.

Each line in a .ddsignore file specifies a pattern. These patterns follow the Python fnmatch Unix shell-style wildcards.

Special characters used in shell-style wildcards:

Pattern	Meaning
*	matches everything
?	matches any single character
[seq]	matches any character in seq
[!seq]	matches any character not in seq

Using the --dry-run option with upload command can help you test out what will be uploaded while creating .ddsignore files.

Examples

Skip files that end in .log

Given a project with this layout:

project1/data/
project1/data/file1.log
project1/data/file2.zip
project1/data/file3.bam
project1/somefile.log

Uploaded with a command like this:

ddsclient upload -p MyProject1 project1/

Create a file at project1/.ddsignore with the following contents:

*.log

This would skip uploading these files:

project1/data/file1.log
project1/somefile.log

If the .ddsignore file was moved to project1/data/.ddsignore only project1/data/file1.log would be skipped.

Clone this wiki locally