How to check if an FTP directory exists(如何检查FTP目录是否存在)
问题描述
寻找通过 FTP 检查给定目录的最佳方式.
Looking for the best way to check for a given directory via FTP.
目前我有以下代码:
无论目录是否存在,这都会返回 false.有人能指出我正确的方向吗?
This returns false whether the directory is there or not. Can someone point me in the right direction.
推荐答案
基本上捕获了像这样创建目录时收到的错误.
Basically trapped the error that i receive when creating the directory like so.
这篇关于如何检查FTP目录是否存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!