04-12-2012, 07:03 AM
OK, played with your function.
Is this stupid code i tried have any chance to fail under some circumstances, or can I use it
too safely for that purpose too?
function event $name [$newname]
event: 1 added, 2 removed, 4 renamed, 8 modified
str NewName Ext
Dir d
long _size
sel event
case [1,8]
d.dir(name)
WaitForFileReady(name)
rep
_size=d.FileSize
out _size
if(_size>0) break
....
do something when file is created
Is this stupid code i tried have any chance to fail under some circumstances, or can I use it
too safely for that purpose too?
function event $name [$newname]
event: 1 added, 2 removed, 4 renamed, 8 modified
str NewName Ext
Dir d
long _size
sel event
case [1,8]
d.dir(name)
WaitForFileReady(name)
rep
_size=d.FileSize
out _size
if(_size>0) break
....
do something when file is created
