All pastes #48824 Raw Edit

Something

public python v1 · immutable
#48824 ·published 2006-04-10 02:48 UTC
rendered paste body
copy(src_service, src_path, dest_service, dest_path, callback = None, write_mode = SMB_O_CREAT | SMB_O_TRUNC, src_password = None, dest_password = None, timeout = None)    Copy a file of src_path in src_service to dest_path in dest_service. Both src_path and dest_path should be a fully-qualified path name of the file (excluding the service component). The callback function should be able to take in 2 int arguments which are the number of bytes copied and the total number of bytes to copy respectively. src_password and dest_password are the authentication info required for access if the src_service and/or dest_service are in share mode and are protected. Raises nmb.NetBIOSTimeout if timeout (in secs) waiting for reply. Raises smb.SessionError if error occurs.