Commit 07fb506f authored by Nikola Hardi's avatar Nikola Hardi
Browse files

Fix the result rewriter for stat command

parent 37ed12c8
Pipeline #759895 failed with stage
in 4 minutes and 29 seconds
......@@ -14,7 +14,7 @@ using namespace std;
const map<string, pair<string, string>> TJAlienResultRewriter::rules = {
{"ls" , {"" , "0"}},
{"cd" , {"1", "0"}},
{"stat" , {"0", "1"}},
{"stat" , {"1", "0"}},
{"mkdir", {"1", "0"}},
};
......
......@@ -453,9 +453,9 @@ Bool_t TJAlienSystem::AccessPathName(const char *path, EAccessMode mode)
TJAlienResult *result = (TJAlienResult*)gGrid->Command(TString("stat") + " " + sPath);
const char *val = result->GetKey(0, "__result__");
if(strcmp(val, "0") == 0) {
if(strcmp(val, "1") == 0) {
return false;
} else if(strcmp(val, "1") == 0) {
} else if(strcmp(val, "0") == 0) {
return true;
} else {
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment