pysys.utils.filecopy module¶
-
pysys.utils.filecopy.
copyfileobj
(fsrc, fdst, length=16384)[source]¶ Internal method to read bytes from a source file descriptor, and write to a destination file descriptor.
Parameters: - fsrc – The source file descriptor
- fdst – The destination file descriptor
- length – The buffer length to read from the src and write to the destination
-
pysys.utils.filecopy.
filecopy
(src, dst)[source]¶ Copy source file to a destination file.
Parameters: - src – Full path to the source filename
- dst – Full path the destination filename
Raises: FileNotFoundException – Raised if the source file does not exist