I have files in ToTransfer folder on remote windows server. I need to move them to ToTransfre\Tran sferred folder. I am using sftp. The code below did not give me compile error but it did not work either. Can anyone please let know how to get it working?
Code:
unless(move("ToTransfer\\$filelist[$li]->{filename}", "ToTransfer\\Transferred")) { print "Couldn't move the file to directory ToTransfer\\Transferred\n"; }
Comment