Commit e6643fb7 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fix bug when creating symlink

parent a8228ccb
......@@ -203,8 +203,8 @@ class tx_nG6_eid {
break;
}
// For each files in the source directory
foreach(scandir("ssh2.sftp://".$connection.$src_directory) as $file) {
if (is_file("ssh2.sftp://".$connection.$src_directory."/".$file) and $file != "analyse.xml" and $file != "index.html" and $file != "run.cfg") {
foreach(scandir($src_directory) as $file) {
if (is_file($src_directory."/".$file) and $file != "analyse.xml" and $file != "index.html" and $file != "run.cfg") {
if (!ssh2_exec($connection, 'ln -s '.$src_directory.'/'.$file.' '.$directories[1][$index].'/'.$file)) {
$creation = false;
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment