Author Topic: Moving an Image  (Read 1018 times)

The command will not create destination directories. You'll have to make those yourself and then copy the file.
Oh wow, it works perfectly, thanks!

Oh wow, it works perfectly, thanks!

If you need to dynamically create directories to copy to, use something like this:
(I've never had to do this, so there might be a function for it built into Blockland.)

Code: [Select]
function createDirectory(%dir)
{
if(getSubStr(%dir,strLen(%dir) - 1,1) !$= "/")
%dir = %dir @ "/";

while(true)
{
%num++;
%path = %dir @ %num @ ".tmp";

if(!isFile(%path))
break;
}

%file = new FileObject();
%file.openForWrite(%path);

%file.close();
%file.delete();

fileDelete(%path);
}
« Last Edit: August 06, 2010, 06:29:07 PM by Truce »