13 #ifndef WS_FILE_NODE_H__
14 #define WS_FILE_NODE_H__
31 WsFileNode(
const path& fullPath,
const path& rootPath);
43 bool isAllowed(
const std::set<string>& gids);
Reprensents a File on disk.
bool isAllowed(const std::set< string > &gids)
Return true or false whether the gids are allowed or no.
Represents a node on disk.
Node structure, must be inherited.
const uintmax_t getSize()
return the size of the file
const string getAuthor()
returns the author name.
bool getDisplayInMenu()
returns true if the item should be displayed in the menu. This value is set in the configuration file...
const set< string > getGroups()
returns the list of the groups allowed to access this node
const string getPublishDate()
returns the publish date of the file