You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On file.php solution the one used to connect over sFTP we have problem related to file picking?
Sometime, depends on the file presents on the watched directory some files are ignored in the readData process.
The only way act for discover the ignored file is to DELETE (manually) from the directory (watched) the last processed file.
What's is the right way to use FTP solution to work without ignoring files?
Hi @francescobianco ,
Myddleware check if a new file exists or if an existing files has been modified. The reference date is used for that.
For information, the command used to browse the directory is : find . -newermt "'.$date_ref.'" -type f | sort | head -n 1
I see a bug when I try this command. Files could be ignored if several files have a modification date after the reference date. The issue is on the sort command because sort is done on file name instead of modification date.
We will fix this issue.
$stream = ssh2_exec($this->sshconnection, 'cd '.$directory.';find . -newermt "'.$date_ref.'" -type f | sort | head -n 1');
The command to be executed is find . -newermt "2023-05-04 00:00:00" -type f -printf "%T+ %p\n" | sort | head -n 1
The $file variable will contains the modification date of the file, you will have to remove to get the filename here :
On file.php solution the one used to connect over sFTP we have problem related to file picking?
Sometime, depends on the file presents on the watched directory some files are ignored in the readData process.
The only way act for discover the ignored file is to DELETE (manually) from the directory (watched) the last processed file.
What's is the right way to use FTP solution to work without ignoring files?
@simonetravaglini
The text was updated successfully, but these errors were encountered: