Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python (shutil Module (Copy (Move (shutil.move(src, dst) DEF), shutil…
Python
-
shutil Module
Copy
shutil.copystat(src, dst) DEF
shutil.copy(src, dst) DEF
shutil.copymode(src, dst) DEF
shutil.copy2(src, dst) DEF
shutil.copyfile(src, dst) DEF
shutil.copytree(src, dst, symlinks=False, ignore=None) DEF
Move
shutil.move(src, dst) DEF
-
-
os module
os.path
Absolute or Relative
os.path.relpath(path, start=os.curdir) DEF
os.path.abspath(path) DEF
DirName or BaseName
os.path.dirname(path) DEF
os.path.basename(path) DEF
COMMON
os.path.commonpath(paths) DEF
IS or IS NOT
os.path.lexists(path) DEF
-
-
-
-
-
os.path.ismount(path) DEF
SAME TEST
os.path.sameopenfile(fp1, fp2) DEF
os.path.samestat(stat1, stat2) DEF
os.path.samefile(path1, path2) DEF
EXPAND
os.path.expandvars(path) DEF
os.path.expanduser(path) DEF
TIME
os.path.getmtime(path) DEF
os.path.getatime(path) DEF
os.path.getsize(path) DEF
os.path.join(path, *paths) DEF
Just On Windows
os.path.splitdrive(path) DEF
os.path.normcase(path) DEF
os.path.normpath(path) DEF
os.path.realpath(path) DEF
-
os.path.splitext(path) DEF
OS
os.listdir(path='.' ) DEF
os.walk(top, topdown=True, onerror=None, followlinks=False) DEF
os.scandir(*path="." ) DEF
-
-
-
-
-
-
os.stat(path, dir_fd=None, follow_symlinks=True) DEF
-
-
os.makedirs(name, mode=0o777, exist_ok=False) DEF
-
-
-
-
Compression
shutil Module
shutil.get_archive_formats() DEF
shutil.register_archive_format(name, function[, extra_args{, description]]) DEF
shutil.make_archive(base_name, format[, root_dir[, base_dir[, verbose[, dry_run[, owner[, group[, logger]]]]]]]) DEF
shutil.unregister_archive_format(name) DEF
ZipFile Module
Exceptions
-
zipfile.LargeZipFile() DEF
-
Objects Class
zipfile.ZipFile(file, mode='r', compression=ZIP_STORED, allowZip64=True) DEF
-
-
ZipFile.open(name, mode='r', pwd=None) DEF
ZipFile.extract(member, path=None, pwd=None) DEF
ZipFile.extractall(path=None, members=None, pwd=None) DEF
-
ZipFile.setpassword(pwd) DEF
ZipFile.read(name, pwd=None) DEF
ZipFile.write(filename, arcname=None, compress_type=None) DEF
ZipFile.writestr(zinfo_or_arcname, data[, compress_type]) DEF
zipfile.ZipInfo(filename='NoName', date_time=(1980,1,1,0,0,0)) DEF
-
ZipFile.getinfo(name) DEF
zipfile.is_zipfile(filename) Def
-
-
-
-