summaryrefslogtreecommitdiff
path: root/fs/path.py
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2010-07-10 15:29:54 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2010-07-10 15:29:54 +0000
commite839414799d424a39cc60ae7d943d9d64fec0a1c (patch)
tree147b4384eab2e22779e5cc6e1c4219b27f797e73 /fs/path.py
parenta7365283fdb0b8501c43c4fc1e4ca24b79c0e7eb (diff)
downloadpyfilesystem-e839414799d424a39cc60ae7d943d9d64fec0a1c.tar.gz
Added better zip exceptions, and added __all__ to core classes
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@378 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/path.py')
-rw-r--r--fs/path.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/path.py b/fs/path.py
index fc5d518..e855455 100644
--- a/fs/path.py
+++ b/fs/path.py
@@ -269,6 +269,7 @@ def forcedir(path):
return path + '/'
return path
+
def frombase(path1, path2):
if not isprefix(path1, path2):
raise ValueError("path1 must be a prefix of path2")