-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ sX d Z d d l m Z d d l Z d d l m Z d e j f d „ ƒ YZ d „ Z d S( sB Fake transport with some restrictions of Windows VFAT filesystems.
VFAT on Windows has several restrictions that are not present on unix
filesystems, which are imposed by this transport.
VFAT is strictly 8-bit using codepages to represent non-ascii characters.
This implementation currently doesn't model the codepage but just insists
on only ascii characters being written.
Restrictions imposed by this transport:
* filenames are squashed to lowercase
* filenames containing non-ascii characters are not allowed
* filenames containing the characters "@<>" are not allowed
(there should be more?)
Some other restrictions are not implemented yet, but possibly could be:
* open files can't be deleted or renamed
* directories containing open files can't be renamed
* special device names (NUL, LPT, ...) are not allowed
i ( t absolute_importN( t decoratort FakeVFATTransportDecoratorc B@ sb e Z d Z d „ Z e d „ ƒ Z d „ Z d „ Z d d „ Z d „ Z
d „ Z d d „ Z RS(
sR A decorator that can convert any transport to be readonly.
This is requested via the 'vfat+' prefix to get_transport().
This is intended only for use in testing and doesn't implement every
method very well yet.
This transport is typically layered on a local or memory transport
which actually stored the files.
c C@ s t S( s- See Transport._can_roundtrip_unix_modebits().( t False( t self( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt _can_roundtrip_unix_modebitsD s c C@ s d S( s5 Readonly transport decorators are invoked via 'vfat+'s vfat+( ( R ( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt _get_url_prefixH s c C@ s/ t j d | ƒ r% t d | ƒ ‚ n | j ƒ S( s® Return vfat-squashed filename.
The name is returned as it will be stored on disk. This raises an
error if there are invalid characters in the name.
s [?*:;<>]s( illegal characters for VFAT filename: %r( t ret searcht
ValueErrort lower( R t name( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt _squash_nameM s c C@ s | j j | j | ƒ ƒ S( N( t
_decoratedt getR ( R t relpath( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyR W s c C@ s | j j | j | ƒ d ƒ S( Nií ( R
t mkdirR ( R R t mode( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyR Z s c C@ s | j j | j | ƒ ƒ S( N( R
t hasR ( R R ( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyR ] s c C@ s | j j | j | ƒ | ƒ S( N( R
t readvR ( R R t offsets( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt _readv` s c C@ s | j j | j | ƒ | | ƒ S( N( R
t put_fileR ( R R t fR ( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyR c s N(
t __name__t
__module__t __doc__R t classmethodR R R t NoneR R R R ( ( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyR 8 s
c C@ s d d l m } t | j f g S( s. Return the permutations to be used in testing.i ( t test_server( t bzrlib.testsR R t FakeVFATServer( R ( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt get_test_permutationsg s ( R t
__future__R R t bzrlib.transportR t TransportDecoratorR R ( ( ( s= /usr/lib/python2.7/dist-packages/bzrlib/transport/fakevfat.pyt <module>' s
/
Copyright © 2017 || Recoded By Mr.Bumblebee