2012-04-09 11:13 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/hbformat/hbfmtcls.prg
! use HB_FCOPY() instead of FRENAME() to create backup.
this makes it work when .bak already exists.
This commit is contained in:
@@ -16,6 +16,11 @@
|
||||
The license applies to all entries newer than 2009-04-28.
|
||||
*/
|
||||
|
||||
2012-04-09 11:13 UTC+0200 Viktor Szakats (harbour syenar.net)
|
||||
* contrib/hbformat/hbfmtcls.prg
|
||||
! use HB_FCOPY() instead of FRENAME() to create backup.
|
||||
this makes it work when .bak already exists.
|
||||
|
||||
2012-04-09 00:07 UTC+0200 Viktor Szakats (harbour syenar.net)
|
||||
* bin/hb3rdpat.hbs
|
||||
* formatting
|
||||
|
||||
@@ -804,7 +804,7 @@ METHOD Array2File( cFileName, aFile ) CLASS HBFORMATCODE
|
||||
cName := iif( ( i := RAt( ".", cFileName ) ) == 0, cFileName, SubStr( cFileName, 1, i - 1 ) )
|
||||
IF Empty( ::cExtSave )
|
||||
cBakName := cName + iif( Left( ::cExtBack, 1 ) != ".", ".", "" ) + ::cExtBack
|
||||
IF FRename( cFileName, cBakName ) == F_ERROR
|
||||
IF hb_FCopy( cFileName, cBakName ) == F_ERROR
|
||||
RETURN .F.
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
Reference in New Issue
Block a user