View Single Post
Old 05-06-2004, 03:23 PM  
Ofloo
Member
 
Join Date: Jun 2003
Posts: 43
Default [TCL] Renaming a file on PRE STOR

i got this under pre

PHP Code:
[FTP_Pre-Command_Events]

stor TCL ..\scripts\ioSfv\ioSfv.tcl sfvstore 
i want to rename from filename.incomplete to filename

for some reason this doesn't seem to be working anyone any ideas ??

i think its the pre thing .. cause

PHP Code:
--------------------------- ErrorInfo ----------------------------
error renaming "..\site\test\15[.mp3.incomplete" to "..\site\test\15[.mp3"file already exists
    
while executing
"file rename -- $path\\[lindex $arg end].incomplete $path\\[lindex $arg end]"
    
(procedure "sfvstore" line 6)
    
invoked from within
"sfvstore "$args""
    
invoked from within
"if {[info exists args]} {
  if {[string match -nocase sfvcheck [lindex 
$args 0]]} { 
Ofloo is offline