You appear to be a bot. Output may be restricted
Description
Move the file from $fromfile to $tofile
Usage
$bool = bw_movefile( $fromfile, $tofile );
Parameters
- $fromfile
- ( string ) required – fully qualified file to move
- $tofile
- ( string ) required – fully qualified target location – MUST be different from $fromfile ( not checked )
Returns
bool true if target directory was OK AND the file was copied and the tofile deleted Note: Need to check if we could use rename()Source
File name: oik/admin/oik-relocate.incLines:
1 to 10 of 10
function bw_movefile( $fromfile, $tofile ) { $success = bw_mkdir( $tofile ); if ( $success ) { $success = copy( $fromfile, $tofile ); if ( $success ) $success = unlink( $fromfile ); } bw_trace2( $success, "success?" ); return( $success ); }View on GitHub View on Trac