More Windows CopyFile stuff
parent
aaa493ebd2
commit
a13975502c
|
@ -109,16 +109,14 @@ M: windows-io <file-appender> ( path -- stream )
|
||||||
open-append <win32-file> <writer> ;
|
open-append <win32-file> <writer> ;
|
||||||
|
|
||||||
M: windows-io rename-file ( from to -- )
|
M: windows-io rename-file ( from to -- )
|
||||||
[ normalize-pathname ] 2apply
|
[ normalize-pathname ] 2apply MoveFile win32-error=0/f ;
|
||||||
MoveFile win32-error=0/f ;
|
|
||||||
|
|
||||||
M: windows-io delete-file ( path -- )
|
M: windows-io delete-file ( path -- )
|
||||||
normalize-pathname
|
normalize-pathname DeleteFile win32-error=0/f ;
|
||||||
DeleteFile win32-error=0/f ;
|
|
||||||
|
|
||||||
M: windows-io copy-file ( from to -- )
|
M: windows-io copy-file ( from to -- )
|
||||||
normalize-pathname
|
dup parent-directory make-directories
|
||||||
f CopyFile win32-error=0/f ;
|
[ normalize-pathname ] 2apply f CopyFile win32-error=0/f ;
|
||||||
|
|
||||||
M: windows-io make-directory ( path -- )
|
M: windows-io make-directory ( path -- )
|
||||||
normalize-pathname
|
normalize-pathname
|
||||||
|
|
|
@ -566,7 +566,8 @@ FUNCTION: BOOL ConnectNamedPipe ( HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped )
|
||||||
! FUNCTION: CopyFileA
|
! FUNCTION: CopyFileA
|
||||||
! FUNCTION: CopyFileExA
|
! FUNCTION: CopyFileExA
|
||||||
! FUNCTION: CopyFileExW
|
! FUNCTION: CopyFileExW
|
||||||
! FUNCTION: CopyFileW
|
FUNCTION: BOOL CopyFileW ( LPCTSTR lpExistingFileName, LPCTSTR lpNewFileName, BOOL bFailIfExists ) ;
|
||||||
|
: CopyFile CopyFileW ; inline
|
||||||
! FUNCTION: CopyLZFile
|
! FUNCTION: CopyLZFile
|
||||||
! FUNCTION: CreateActCtxA
|
! FUNCTION: CreateActCtxA
|
||||||
! FUNCTION: CreateActCtxW
|
! FUNCTION: CreateActCtxW
|
||||||
|
@ -575,7 +576,7 @@ FUNCTION: BOOL ConnectNamedPipe ( HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped )
|
||||||
! FUNCTION: CreateDirectoryExA
|
! FUNCTION: CreateDirectoryExA
|
||||||
! FUNCTION: CreateDirectoryExW
|
! FUNCTION: CreateDirectoryExW
|
||||||
FUNCTION: BOOL CreateDirectoryW ( LPCTSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttribytes ) ;
|
FUNCTION: BOOL CreateDirectoryW ( LPCTSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttribytes ) ;
|
||||||
: CreateDirectory CreateDirectoryW ;
|
: CreateDirectory CreateDirectoryW ; inline
|
||||||
|
|
||||||
! FUNCTION: CreateEventA
|
! FUNCTION: CreateEventA
|
||||||
! FUNCTION: CreateEventW
|
! FUNCTION: CreateEventW
|
||||||
|
|
Loading…
Reference in New Issue