summaryrefslogtreecommitdiffstats
path: root/modules/pl_dir.module/module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pl_dir.module/module.cpp')
-rw-r--r--modules/pl_dir.module/module.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/pl_dir.module/module.cpp b/modules/pl_dir.module/module.cpp
index 6578dfe..fe27588 100644
--- a/modules/pl_dir.module/module.cpp
+++ b/modules/pl_dir.module/module.cpp
@@ -517,6 +517,9 @@ namespace pl
out["currentPath"]=mCurrentPath.string();
out["currentFile"]=mCurrentFile.string();
+ //to make life easier for user interfaces in a crossplatform way:
+ out["parentPath"]=mCurrentPath.parent_path().string();
+
BOOST_FOREACH(path prevFile, mPrevFiles)
{
out["prevFiles"].list().push_back(prevFile.string());