Index: filters/stripindex.py |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/filters/stripindex.py |
@@ -0,0 +1,5 @@ |
+def stripindex(path): |
+ parts = path.split("/") |
+ if parts[-1] == "index": |
+ parts.pop() |
+ return "/".join(parts) |