We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to create a unknow dir?
$dir = date('Y/ym/d')
i don't know either this dir is exist or not
//$dir = 'img/'.date('Y/ym/d'); $dir = 'img/2015/1508/02'; $arr = explode($split, $dir); foreach($arr as $d){ if(!\Yii::$app->ftp->chdir($d)){ \Yii::$app->ftp->mkdir($d); } }
The text was updated successfully, but these errors were encountered:
You have to catch gftp\FtpException. I will add method fileExists in driver in order to test file existence.
gftp\FtpException
Sorry, something went wrong.
Issue #6: Add fileExists method for testing file/folder existence
fc81a9d
Method fileExists added in FtpComponent and drivers. Cf. commit : fc81a9d
hguenot
No branches or pull requests
how to create a unknow dir?
i don't know either this dir is exist or not
throw error ftp_chdir(): Failed to change directory.
The text was updated successfully, but these errors were encountered: