【问题标题】:BlackRaccoon Check if file existBlackRaccoon 检查文件是否存在
【发布时间】:2014-01-03 23:44:06
【问题描述】:

我正在使用 BlackRaccoon 在服务器中上传文件。 在上传之前,我想了解是否可以检查我上传的文件是否存在!。 可能吗? 谢谢, 文森佐

【问题讨论】:

  • [[NSFileManager defaultManager] fileExistsAtPath:filepath] 不起作用?
  • 抱歉检查 FTP 服务器

标签: ios ios7 upload blackraccoon


【解决方案1】:

你也许可以使用列表目录功能

listDir = [[BRRequestListDirectory alloc] initWithDelegate: self];  

listDir.path = @"/home/user/newdirectory/";
listDir.hostname = @"192.168.1.100";
listDir.username = @"yourusername";
listDir.password = @"yourpassword";

[listDir start];

然后在收到的列表上有一个

- (BOOL)fileExists:(NSString *)fileNamePath;

选项。

将此文件名传递给检查您的文件是否已存在于目录中。

【讨论】:

    猜你喜欢
    • 2021-12-25
    • 1970-01-01
    • 2021-07-22
    • 2013-07-17
    • 2012-12-23
    相关资源
    最近更新 更多