I have run into a weird issue with moving files. When attempting to move a file from one directory to another. The move works somewhat.
I have these directories/files:
From: /mnt/fds-phx/docTmp/coded/1.tif
to: /mnt/fds-phx/plSystem/transactions/active/98E98657-D4A3-6B6B-EF2990B199D75814/tmp
The issue that I am facing is, when I try to move from the from directory to the to directory. The file is moved to /mnt/fds-phx/plSystem/transactions/active/98E98657-D4A3-6B6B-EF2990B199D75814 instead of /mnt/fds-phx/plSystem/transactions/active/98E98657-D4A3-6B6B-EF2990B199D75814/tmp
I have no idea why it is completely ignoring the /tmp part of my string.
Here is my current code.
I have these directories/files:
From: /mnt/fds-phx/docTmp/coded/1.tif
to: /mnt/fds-phx/plSystem/transactions/active/98E98657-D4A3-6B6B-EF2990B199D75814/tmp
The issue that I am facing is, when I try to move from the from directory to the to directory. The file is moved to /mnt/fds-phx/plSystem/transactions/active/98E98657-D4A3-6B6B-EF2990B199D75814 instead of /mnt/fds-phx/plSystem/transactions/active/98E98657-D4A3-6B6B-EF2990B199D75814/tmp
I have no idea why it is completely ignoring the /tmp part of my string.
Here is my current code.
Code:
# read trans barcode
$primer = Util::Util::trim(Util::Util::fileDecode($transFile));
# set transaction folder path
my $transPath = $wDir . "plSystem/transactions/active/".$primer."/tmp";
print "Transpath : " . $transPath . "\n";
print "FileName : ". $transFile . "\n";
system("cp $transFile $transPath");