Skip to content

Commit

Permalink
Fix exists dir
Browse files Browse the repository at this point in the history
  • Loading branch information
vlont committed Feb 12, 2022
1 parent 0ecf137 commit a2b2073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/ftp/ftp.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ public function mkdir($ftp, $ftpdir)
foreach ($dirs as $dir) {
if (!$this->dirExists($ftp, $dir)) {
ftp_mkdir($ftp, $dir);
ftp_chdir($ftp, $dir);
}

ftp_chdir($ftp, $dir);
}

ftp_chdir($ftp, '/');
Expand Down

0 comments on commit a2b2073

Please sign in to comment.