def pip._vendor.distlib.util.FileOperator.__init__ |
( |
|
self, |
|
|
|
dry_run = False |
|
) |
| |
def pip._vendor.distlib.util.FileOperator._init_record |
( |
|
self | ) |
|
|
private |
def pip._vendor.distlib.util.FileOperator.byte_compile |
( |
|
self, |
|
|
|
path, |
|
|
|
optimize = False , |
|
|
|
force = False , |
|
|
|
prefix = None |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.commit |
( |
|
self | ) |
|
Commit recorded changes, turn off recording, return
changes.
def pip._vendor.distlib.util.FileOperator.copy_file |
( |
|
self, |
|
|
|
infile, |
|
|
|
outfile, |
|
|
|
check = True |
|
) |
| |
Copy a file respecting dry-run and force flags.
def pip._vendor.distlib.util.FileOperator.copy_stream |
( |
|
self, |
|
|
|
instream, |
|
|
|
outfile, |
|
|
|
encoding = None |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.ensure_dir |
( |
|
self, |
|
|
|
path |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.ensure_removed |
( |
|
self, |
|
|
|
path |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.is_writable |
( |
|
self, |
|
|
|
path |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.newer |
( |
|
self, |
|
|
|
source, |
|
|
|
target |
|
) |
| |
Tell if the target is newer than the source.
Returns true if 'source' exists and is more recently modified than
'target', or if 'source' exists and 'target' doesn't.
Returns false if both exist and 'target' is the same age or younger
than 'source'. Raise PackagingFileError if 'source' does not exist.
Note that this test is not very accurate: files created in the same
second will have the same "age".
def pip._vendor.distlib.util.FileOperator.record_as_written |
( |
|
self, |
|
|
|
path |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.rollback |
( |
|
self | ) |
|
def pip._vendor.distlib.util.FileOperator.set_mode |
( |
|
self, |
|
|
|
bits, |
|
|
|
mask, |
|
|
|
files |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.write_binary_file |
( |
|
self, |
|
|
|
path, |
|
|
|
data |
|
) |
| |
def pip._vendor.distlib.util.FileOperator.write_text_file |
( |
|
self, |
|
|
|
path, |
|
|
|
data, |
|
|
|
encoding |
|
) |
| |
pip._vendor.distlib.util.FileOperator.dirs_created |
pip._vendor.distlib.util.FileOperator.dry_run |
pip._vendor.distlib.util.FileOperator.ensured |
pip._vendor.distlib.util.FileOperator.files_written |
pip._vendor.distlib.util.FileOperator.record |
tuple pip._vendor.distlib.util.FileOperator.set_executable_mode = lambdas,f:s.set_mode(0o555, 0o7777, f) |
|
static |
The documentation for this class was generated from the following file:
- orbits/lib/python2.7/site-packages/pip/_vendor/distlib/util.py
Copyright 2014 Google Inc. All rights reserved.