Copy all data between two file objects. The SOURCE argument is a file object open for reading (or anything with a read() method) and the DESTINATION argument is a file object open for writing (or anything with a write() method). The only reason for overridin
(self, source, outputfile)
| 898 | return path |
| 899 | |
| 900 | def copyfile(self, source, outputfile): |
| 901 | """Copy all data between two file objects. |
| 902 | |
| 903 | The SOURCE argument is a file object open for reading |
| 904 | (or anything with a read() method) and the DESTINATION |
| 905 | argument is a file object open for writing (or |
| 906 | anything with a write() method). |
| 907 | |
| 908 | The only reason for overriding this would be to change |
| 909 | the block size or perhaps to replace newlines by CRLF |
| 910 | -- note however that this the default server uses this |
| 911 | to copy binary data as well. |
| 912 | |
| 913 | """ |
| 914 | shutil.copyfileobj(source, outputfile) |
| 915 | |
| 916 | def guess_type(self, path): |
| 917 | """Guess the type of a file. |
no outgoing calls