Lines Matching full:path
55 *src* and *dst* are path-like objects or path names given as strings.
58 for a copy that accepts a target directory path. If *src* and *dst*
97 group are unaffected. *src* and *dst* are path-like objects or path names
116 group are unaffected. *src* and *dst* are path-like objects or path
161 should be :term:`path-like objects <path-like object>` or strings. If
164 it will be replaced. Returns the path to the newly created file.
183 Now returns path to the newly created file.
215 Now returns path to the newly created file.
265 each file. It will be called with the source path and the destination path
295 .. function:: rmtree(path, ignore_errors=False, onerror=None, *, dir_fd=None)
299 Delete an entire directory tree; *path* must point to a directory (but not a
319 parameters: *function*, *path*, and *excinfo*.
323 *path*, will be the path name passed to *function*. The third parameter,
327 .. audit-event:: shutil.rmtree path,dir_fd shutil.rmtree
387 Accepts a :term:`path-like object` for both *src* and *dst*.
389 .. function:: disk_usage(path)
391 Return disk usage statistics about the given path as a :term:`named tuple`
393 total, used and free space, in bytes. *path* may be a file or a
399 On Windows, *path* can now be a file or directory.
403 .. function:: chown(path, user=None, group=None)
405 Change owner *user* and/or *group* of the given *path*.
412 .. audit-event:: shutil.chown path,user,group shutil.chown
419 .. function:: which(cmd, mode=os.F_OK | os.X_OK, path=None)
421 Return the path to an executable which would be run if the given *cmd* was
427 When no *path* is specified, the results of :func:`os.environ` are used,
428 returning either the "PATH" value or a fallback of :attr:`os.defpath`.
430 On Windows, the current directory is always prepended to the *path* whether
433 *cmd* in the *path*, the ``PATHEXT`` environment variable is checked. For
435 ``PATHEXT`` to know that it should look for ``python.exe`` within the *path*
499 def _logpath(path, names):
500 logging.info('Working in %s', path)
519 def remove_readonly(func, path, _):
521 os.chmod(path, stat.S_IWRITE)
522 func(path)
544 *base_name* is the name of the file to create, including the path, minus
631 Unpack an archive. *filename* is the full path of the archive.
657 It is possible that files are created outside of the path specified in
662 Accepts a :term:`path-like object` for *filename* and *extract_dir*.
676 - the path of the archive, as a positional argument;
721 >>> archive_name = os.path.expanduser(os.path.join('~', 'myarchive'))
722 >>> root_dir = os.path.expanduser(os.path.join('~', '.ssh'))
765 >>> archive_name = os.path.expanduser(os.path.join('~', 'myarchive'))