0

我想让我的 iphone 应用程序可以使用这个站点中的 flycode 连接到一些 webdav 服务器,我已经完成了所有的实现,但是我在cloudme 服务器中复制文件夹时遇到了问题。我在另一个 webdav 服务器中没有这个问题。我在这个过程中的响应代码是 403,响应字符串是:

响应字符串:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 403 COPY needs a file as source</title>
</head>
<body>
<h2>HTTP ERROR: 403</h2>
<p>Problem accessing /myApp/xios/Documents/myDirectory///. Reason:
<pre>    COPY needs a file as source</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>



</body>
</html>

这是我在飞行代码 webdav 中用来调用复制方法的代码:

NSURL *urlFrom = [[NSURL alloc] initWithScheme:@"https" host:[prefs objectForKey:@"idiskhost"] path:fromPath];

    NSURL *urlTo = [[NSURL alloc] initWithScheme:@"https" host:[prefs objectForKey:@"idiskhost"] path:[NSString stringWithFormat:@"%@/",forPath]];

[[[MyAppWebDAVRequest requestToURL:urlFrom] synchronous] copyToDestinationURL:urlTo];

cloudme 是否支持复制文件夹?还是我的代码有问题?

4

1 回答 1

0

我已经解决了这种情况,问题是CloudMe没有授予任何复制文件夹的权限,我现在从系统响应日志中获得了这个。

于 2012-09-13T03:56:05.283 回答