in reply to Re: File transfer not working on server
in thread File transfer not working on server

distinationFile points to directory.

I left out in my example but I am checking for file existence earlier in the script using the -e condition.
  • Comment on Re^2: File transfer not working on server

Replies are listed 'Best First'.
Re^3: File transfer not working on server
by izut (Chaplain) on Aug 21, 2006 at 19:26 UTC

    Are you using use strict; and use warnings;? Again, is Perl throwing some error or warning? Is it dieing? If you provide more information, you will get better answers.

    Igor 'izut' Sutton
    your code, your rules.

      yes i am using strict and warnings. The message I am getting is coming from my condition here:
      if(!-d $destinationFile) { print "Destination Directory not found."; }
      Saying: Destination Directory not found.

        Modify your statement to this:

        unless (-d $destinationFile) { die "Destination directory not found: $!"; }

        It will die and show you why.

        Igor 'izut' Sutton
        your code, your rules.