Skip to content
Snippets Groups Projects
Commit e49016aa authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Changed check on directories

parent d6da0d80
No related branches found
No related tags found
No related merge requests found
......@@ -418,8 +418,9 @@ int XrdProFilesystem::executeLsCommand(const ParsedRequest &req, XrdOucErrInfo &
cta::DirectoryIterator itor = m_clientAPI->getDirectoryContents(requester, req.args.at(0));
while(itor.hasMore()) {
const cta::DirectoryEntry &entry = itor.next();
responseSS << "\n";
responseSS << ((S_ISDIR(entry.mode)) ? "d" : "-");
responseSS << ((entry.entryType == cta::DirectoryEntry::ENTRYTYPE_DIRECTORY) ? "d" : "-");
responseSS << ((entry.mode & S_IRUSR) ? "r" : "-");
responseSS << ((entry.mode & S_IWUSR) ? "w" : "-");
responseSS << ((entry.mode & S_IXUSR) ? "x" : "-");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment