diff --git a/index.php b/index.php
index 5769a5b..d5d9df2 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,10 @@
+
+
- Directory listing of <DIRECTORY>
+ Directory listing of getListedPath(); ?>
@@ -17,8 +19,6 @@
-
-
diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php
index cc19e57..768bc03 100644
--- a/resources/DirectoryLister.php
+++ b/resources/DirectoryLister.php
@@ -200,6 +200,25 @@ class DirectoryLister {
// Return the breadcrumb array
return $breadcrumbsArray;
}
+
+ /**
+ * Gets path of the listed directory
+ *
+ * @return string Pat of the listed directory
+ * @acces public
+ */
+ public function getListedPath() {
+
+ // Build the path
+ if ($this->_directory == '.') {
+ $path = $this->_appURL;
+ } else {
+ $path = $this->_appURL . $this->_directory;
+ }
+
+ // Return the path
+ return $path;
+ }
/**