/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-28 15:23:14 UTC
  • mfrom: (1959.2.8 transport-listdir)
  • Revision ID: pqm@pqm.ubuntu.com-20060828152314-9bd2bb284d84fab2
(spiv, ddaa, jam) Update Transport.list_dir() to always return URLs

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.