Differences
This shows you the differences between the selected revisions of the page.
2007-06-13 | 2007-11-30 | ||
the mask was correct, the first mask allow entering any directory, the second mask selectes only HTML files. (martin) | full path example (martin) | ||
Line 23: | Line 23: | ||
When the mask selects files and it makes sense to select them based on directory, you can extend the mask with a path mask. You should separate the path mask from the filename mask by a slash. For a relative path mask it makes no difference whether you use back (''\'') or forward slashes (''/''); the mask will always work for both local and remote paths. For example, the exclude mask ''*/public_html/*.bak'' will exclude backup files both in ''D:\Documents\public_html'' and ''/home/martinp/public_html''. If you want to match directories only, add a slash at the end of the mask. | When the mask selects files and it makes sense to select them based on directory, you can extend the mask with a path mask. You should separate the path mask from the filename mask by a slash. For a relative path mask it makes no difference whether you use back (''\'') or forward slashes (''/''); the mask will always work for both local and remote paths. For example, the exclude mask ''*/public_html/*.bak'' will exclude backup files both in ''D:\Documents\public_html'' and ''/home/martinp/public_html''. If you want to match directories only, add a slash at the end of the mask. | ||
- | Particularly when specifing an [[ui_transfer#other_options|include mask]] for transfers, bear in mind that it is applied to directories as well, so that ''*.bak'' will only match backup files located in the current directory (unless you happen to have a subdirectory whose own name ends in ".bak", in which case it will be applied to all backup files in there too). | + | You can also specify full path to specific file or directory, both local and remote. For example if you want to exclude only specific ''.csv'' directory, not all, use ''/home/martinp/data/.csv/'' instead of ''.csv/''. |
+ | |||
+ | Particularly when specifying an [[ui_transfer#other_options|include mask]] for transfers, bear in mind that it is applied to directories as well, so that ''*.bak'' will only match backup files located in the current directory (unless you happen to have a subdirectory whose own name ends in ".bak", in which case it will be applied to all backup files in there too). | ||
The mask ''*/'' matches any directory. For example to transfer only HTML files located in any directory, use the include mask ''*/; *.html''. | The mask ''*/'' matches any directory. For example to transfer only HTML files located in any directory, use the include mask ''*/; *.html''. | ||
For convenience, a masks ''*.*'' and ''*.'' are exceptions matching any file and any file without an extension, respectively, even if its name does not include any dot. | For convenience, a masks ''*.*'' and ''*.'' are exceptions matching any file and any file without an extension, respectively, even if its name does not include any dot. |