400当我尝试删除目录时,FirebaseStorage始终返回错误,例如以下内容始终返回错误400.
let storageRef = FIRStorage.storage().reference().child("path/to/directory")
storageRef.deleteWithCompletion { (error) in
print("error: \(error)") // always prints error code 400
}
Run Code Online (Sandbox Code Playgroud)
但是,删除文件工作正常,例如不会返回错误:
let storageRef = FIRStorage.storage().reference().child("path/to/file.jpg")
storageRef.deleteWithCompletion { (error) in
print("error: \(error)") // works fine, error is nil
}
Run Code Online (Sandbox Code Playgroud)
我在这里做错了什么?我不认为它不受FirebaseStorage的支持,因为从目录中逐个删除文件会非常蹩脚(特别是如果所述目录有100或1000个).
我想配置Eclipse(或Codeblocks),这样当我编写一个pass时,我至少可以利用Intellisense(即使不能直接从Eclipse中构建传递).更新:一旦我在Eclipse中启用基于解析的建议,我至少得到了一些智能感知(详情如下)
到目前为止,我已经将Eclipse配置为使用clang来编译简单的C++程序.
为了获得LLVM传递的intellisense,我添加/usr/local/include到Includes目录并尝试了代码:
#include <iostream>
#include <llvm/IR/Function.h>
using namespace std:
int main() {
cout << "Hello World" << endl;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
它本身不会失败#include <llvm/IR/Function.h>(即它可以找到这个头文件),但是在包含后续文件时,给我
/usr/local/include/llvm/Support/DataTypes.h:58:3: error: "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
Run Code Online (Sandbox Code Playgroud)
任何关于我如何制作它的指示至少给我智能感知?
完成日志
01:22:48 **** Rebuild of configuration Debug for project HelloWorld2 ****
Info: Internal Builder is used for build
clang++ -I/usr/local/include -O0 -emit-llvm -g3 -Wall -c -fmessage-length=0 -o src/HelloWorld2.bc ../src/HelloWorld2.cpp
In file included from ../src/HelloWorld2.cpp:10:
In file included from …Run Code Online (Sandbox Code Playgroud)