summaryrefslogtreecommitdiff
path: root/mythfs/service/inodes/allDirectory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mythfs/service/inodes/allDirectory.cpp')
-rw-r--r--mythfs/service/inodes/allDirectory.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/mythfs/service/inodes/allDirectory.cpp b/mythfs/service/inodes/allDirectory.cpp
new file mode 100644
index 0000000..d61b8b9
--- /dev/null
+++ b/mythfs/service/inodes/allDirectory.cpp
@@ -0,0 +1,20 @@
+#include "allDirectory.h"
+#include <util.h>
+#include "symlink.h"
+
+namespace MythFS {
+ AllDirectory::AllDirectory(const DBPrx & d) : db(d) { }
+
+ NetFS::NameList
+ AllDirectory::getContents() const
+ {
+ return db->getRecorded() / &Recorded::basename;
+ }
+
+ Node::PointerType
+ AllDirectory::getChild(const std::string & path) const
+ {
+ return new Symlink("/var/store/mythrecordings/" + path);
+ }
+}
+