-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2024-05-09 23:23 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbapifs.h * src/rtl/fscopy.c + added new C function: HB_BOOL hb_fileCopyEx( const char * pszSource, const char * pszDest, HB_SIZE nBufSize, HB_BOOL fTime, PHB_ITEM pCallBack ); Unlike hb_fileCopy() it is never redirected to remote server and copy operation is always done locally. pCallBack is codeblock or function symbol, it's executed at the beginning and then on each nBufSize bytes written and receives two parameters: nBytesWritten, nTotalSize. Warning: nTotalSize could be 0 when non regular files like pipes or sockets are copied. * src/rtl/vfile.c + added new PRG function: hb_vfCopyFile( <cFileSrc>, <cFileDst>, [<nBufSize>=65536], ; [<lTimePreserve>=.t.], [<bCallBack>] ) --> <nResult> It's wrapper to hb_fileCopyEx() C function. For very big files setting <nBufSize> to greater value, i.e. 16777216 may increase performance.
- Loading branch information
Showing
4 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters