|
@@ -182,6 +182,10 @@ bool FileMan::openKey(const string &path) {
|
|
|
|
|
|
void FileMan::closePut() {
|
|
void FileMan::closePut() {
|
|
putdata = vector<vector<char>>();
|
|
putdata = vector<vector<char>>();
|
|
|
|
+ putname = "";
|
|
|
|
+ putpath = "";
|
|
|
|
+ putchunks = 0;
|
|
|
|
+ putchunksRemaining = 0;
|
|
isputting = false;
|
|
isputting = false;
|
|
memset(iv, 0, sizeof(iv));
|
|
memset(iv, 0, sizeof(iv));
|
|
memset(tag, 0, sizeof(tag));
|
|
memset(tag, 0, sizeof(tag));
|
|
@@ -189,11 +193,20 @@ void FileMan::closePut() {
|
|
|
|
|
|
void FileMan::closeGet() {
|
|
void FileMan::closeGet() {
|
|
getfile.close();
|
|
getfile.close();
|
|
|
|
+ getname = "";
|
|
|
|
+ getpath = "";
|
|
|
|
+ getchunks = 0;
|
|
|
|
+ getchunksRemaining = 0;
|
|
memset(iv, 0, sizeof(iv));
|
|
memset(iv, 0, sizeof(iv));
|
|
memset(tag, 0, sizeof(tag));
|
|
memset(tag, 0, sizeof(tag));
|
|
}
|
|
}
|
|
|
|
|
|
-void FileMan::closeList() { islisting = false; }
|
|
|
|
|
|
+void FileMan::closeList() {
|
|
|
|
+ listdata = vector<Json::Value>();
|
|
|
|
+ islisting = false;
|
|
|
|
+ listchunks = 0;
|
|
|
|
+ listchunksRemaining = 0;
|
|
|
|
+}
|
|
|
|
|
|
bool FileMan::closeKey() {
|
|
bool FileMan::closeKey() {
|
|
if (isPutting() || isGetting())
|
|
if (isPutting() || isGetting())
|