1
The Transport API in bzrlib provides URL based access to network resources.
4
>>> import bzrlib.transport as transport
5
>>> root = transport.get_transport("file:///")
8
Each Transport instance represents a single logical directory.
10
>>> dir = transport.get_transport(".")
11
>>> dir.base == os.getcwdu()
14
You can change directories via the clone method:
16
>>> parent = dir.clone('..')
17
>>> parent.base == os.path.dirname(os.getcwdu())