1 | 2  Next
All Samples(8064)  |  Call(7565)  |  Derive(0)  |  Import(499)
Recursively delete a directory tree.

If ignore_errors is set, errors are ignored; otherwise, if onerror
is set, it is called to handle the error with arguments (func,
path, exc_info) where func is os.listdir, os.remove, or os.rmdir;
path is the argument to that function that caused it to fail; and
exc_info is a tuple returned by sys.exc_info().  If ignore_errors
is false and onerror is None, an exception is raised.

All Samples(2391)  |  Call(2260)  |  Derive(0)  |  Import(131)
Copy data and mode bits ("cp src dst").

The destination may be a directory.

All Samples(1840)  |  Call(1767)  |  Derive(0)  |  Import(73)
Copy data from src to dst

All Samples(1076)  |  Call(1023)  |  Derive(0)  |  Import(53)
Recursively move a file or directory to another location. This is
similar to the Unix "mv" command.

If the destination is a directory or a symlink to a directory, the source
is moved inside the directory. The destination path must not already
exist.

If the destination already exists but is not a directory, it may be
overwritten depending on os.rename() semantics.
(more...)

All Samples(1049)  |  Call(1018)  |  Derive(0)  |  Import(31)
Copy data and all stat info ("cp -p src dst").

The destination may be a directory.

All Samples(941)  |  Call(883)  |  Derive(0)  |  Import(58)
Recursively copy a directory tree using copy2().

The destination directory must not already exist.
If exception(s) occur, an Error is raised with a list of reasons.

If the optional symlinks flag is true, symbolic links in the
source tree result in symbolic links in the destination tree; if
it is false, the contents of the files pointed to by symbolic
links are copied.
(more...)

All Samples(546)  |  Call(515)  |  Derive(0)  |  Import(31)
copy data from file-like object fsrc to file-like object fdst

All Samples(111)  |  Call(88)  |  Derive(0)  |  Import(23)
Copy all stat info (mode bits, atime, mtime, flags) from src to dst

All Samples(100)  |  Call(99)  |  Derive(0)  |  Import(1)
Copy mode bits from src to dst

All Samples(48)  |  Call(42)  |  Derive(0)  |  Import(6)
Function that can be used as copytree() ignore parameter.

Patterns is a sequence of glob-style patterns
that are used to exclude files

All Samples(28)  |  Call(24)  |  Derive(0)  |  Import(4)
Create a (possibly compressed) tar file from all the files under
'base_dir'.

'compress' must be "gzip" (the default), "bzip2", or None.

'owner' and 'group' can be used to define an owner and a group for the
archive that is being built. If not provided, the current owner and group
will be used.

The output tar file will be named 'base_dir' +  ".tar", possibly plus(more...)

All Samples(24)  |  Call(20)  |  Derive(0)  |  Import(4)
Create an archive file (eg. zip or tar).

'base_name' is the name of the file to create, minus any format-specific
extension; 'format' is the archive format: one of "zip", "tar", "bztar"
or "gztar".

'root_dir' is a directory that will be the root directory of the
archive; ie. we typically chdir into 'root_dir' before creating the
archive.  'base_dir' is the directory where we start archiving from;
ie. 'base_dir' will be the common prefix of all files and(more...)

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
OS routines for Mac, NT, or Posix depending on what system we're on.

This exports:
  - all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc.
  - os.path is one of the modules posixpath, or ntpath
  - os.name is 'posix', 'nt', 'os2', 'ce' or 'riscos'
  - os.curdir is a string representing the current directory ('.' or ':')
  - os.pardir is a string representing the parent directory ('..' or '::')
  - os.sep is the (or a most common) pathname separator ('/' or ':' or '\\')
  - os.extsep is the extension separator ('.' or '/')(more...)

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)
Returns a list of supported formats for archiving and unarchiving.

Each element of the returned sequence is a tuple (name, description)

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)
No Document.

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)
Registers an archive format.

name is the name of the format. function is the callable that will be
used to create archives. If provided, extra_args is a sequence of
(name, value) tuples that will be passed as arguments to the callable.
description can be provided to describe the format, and will be returned
by the get_archive_formats() function.

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
Create a zip file from all the files under 'base_dir'.

The output zip file will be named 'base_dir' + ".zip".  Uses either the
"zipfile" Python module (if available) or the InfoZIP "zip" utility
(if installed and found on the default search path).  If neither tool is
available, raises ExecError.  Returns the name of the output zip
file.

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
No Document.

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
No Document.

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
No Document.

  1 | 2  Next