Ticket #191 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by chrism

BTW, I'd be happy to fix stuff I find if you wanna get me checkin access.

Changed 4 years ago by ianb

  • status changed from new to closed
  • resolution set to fixed

Fixed in r6948

Note: See TracTickets for help on using tickets.