我想知道如何使用Rackspace的Cloudfiles的API删除文件?
我正在使用php。
Devan
发布于 2010-05-05 08:05:30
使用CF_Container的delete_object方法。
发布于 2010-05-21 01:53:47
下面是我用C#编写的代码。仅凭猜测,该api与php类似。
UserCredentials userCredientials = new UserCredentials("xxxxxx", "99999999999999");
cloudConnection = new Connection(userCredientials);
cloudConnection.DeleteStorageItem(ContainerName, fileName);发布于 2012-05-07 23:22:16
确保您设置了容器并定义了您正在使用的任何sudo文件夹。
$my_container = $this->conn->get_container($cf_container);
//delete file
$my_container->delete_object($cf_folder.$file_name);https://stackoverflow.com/questions/2769696
复制相似问题