~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-25 22:19:48 UTC
  • mto: This revision was merged to the branch mainline in revision 1963.
  • Revision ID: john@arbash-meinel.com-20060825221948-b14fa1054682bab2
David Allouche: Make transports return escaped paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
        """
293
293
        path = self._abspath(relpath)
294
294
        try:
295
 
            return [urlutils.escape(entry) for entry in os.listdir(path)]
 
295
            entries = os.listdir(path)
296
296
        except (IOError, OSError), e:
297
297
            self._translate_error(e, path)
 
298
        return [urlutils.escape(entry) for entry in entries]
298
299
 
299
300
    def stat(self, relpath):
300
301
        """Return the stat information for a file.