~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Martin Pool
  • Date: 2005-10-06 04:09:55 UTC
  • mfrom: (1413)
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1417.
  • Revision ID: mbp@sourcefrog.net-20051006040955-36f27e5a8d5c977b
[merge] from robert

Show diffs side-by-side

added added

removed removed

Lines of Context:
315
315
        count = self._iterate_over(relpaths, gather, pb, 'stat', expand=False)
316
316
        return stats
317
317
 
 
318
    def listable(self):
 
319
        """Return True if this store supports listing."""
 
320
        raise NotImplementedError
318
321
 
319
322
    def list_dir(self, relpath):
320
323
        """Return a list of all files at the given location.
321
324
        WARNING: many transports do not support this, so trying avoid using
322
325
        it if at all possible.
323
326
        """
324
 
        raise NotImplementedError
 
327
        raise TransportNotPossible("This transport has not "
 
328
                                   "implemented list_dir.")
325
329
 
326
330
    def lock_read(self, relpath):
327
331
        """Lock the given file for shared (read) access.