Python Programming for Biology: Bioinformatics and Beyond



Download 7,75 Mb.
Pdf ko'rish
bet472/514
Sana30.12.2021
Hajmi7,75 Mb.
#91066
1   ...   468   469   470   471   472   473   474   475   ...   514
Bog'liq
[Tim J. Stevens, Wayne Boucher] Python Programming

The ‘

shutil

’ module

The  shutil  module  is  used  to  manipulate  whole  files,  providing  functionality  that  is  not

present in os.



Method (shutil.)

Description

copyfileobj(srcOb,

dstOb[,

chunkSize])

Copies the contents of one open file object to another,

optionally specifying the number of byte ‘chunks’ to buffer

while copying.

copyfile(source,

dest)

Copies the data contained in a file from one path to another



full file path (not just a directory name). Does not copy

permissions, access times etc.

copymode(source,

dest)


Copies read, write and execute permissions from a source

path (e.g. file or a directory) to a destination path.

copystat(source,

dest)


Copies the permissions and access/modification/creation

times from a source path to a destination path.

copy(source, dest)

Copies a file from one path to a destination file path or

directory. If the destination is a directory then the source file

name will be used. File permissions will be copied, but not

access time etc.

copy2(source,

dest)

Like copy() above, but will copy



access/modification/creation times.

copytree(source,

dest, symlinks,

ignore)

Copies the contents of an entire directory tree recursively to

a destination directory. Options to also copy symbolic links

and callable argument that can be used to exclude items.

rmtree(path,

errorIgnore, func)

Deletes an entire directory tree recursively. Options to ignore

any errors and a callable argument to use in the event of an

error.


move(source,

dest)


Moves a file or directory (recursively) from one path to

another.



Download 7,75 Mb.

Do'stlaringiz bilan baham:
1   ...   468   469   470   471   472   473   474   475   ...   514




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish