Ticket #191 (closed defect: fixed)
Missing name in paste.script.copydir
| Reported by: | chrism | Owned by: | ianb |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.1 |
| Component: | script | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Sorry, I don't have a diff, but the fixed version:
def should_skip_file(name):
""" Checks if a file should be skipped based on its name.
If it should be skipped, returns the reason, otherwise returns None. """ if name.startswith('.'):
return 'Skipping hidden file %(filename)s'
if name.endswith('~') or name.endswith('.bak'):
return 'Skipping backup file %(filename)s'
if name.endswith('.pyc'):
return 'Skipping .pyc file %(filename)s'
if name in ('CVS', '_darcs'):
return 'Skipping version control directory %(filename)s'
return None
(get rid of pad, full in the CVS, _darcs branch)
Change History
Note: See
TracTickets for help on using
tickets.
