dirname and filename renamed to a_dir and a_file
Change-Id: I00f17985e6730290d76e56cb30d51bfc9b5dbfad
diff --git a/rsync_url.py b/rsync_url.py
index e4fc55f..f69e93a 100644
--- a/rsync_url.py
+++ b/rsync_url.py
@@ -187,16 +187,16 @@
def urljoin(self, *parts):
return self._fn_join(self.url, *parts)
- def dirname(self, *path):
+ def a_dir(self, *path):
result = self._fn_join(*path)
if not result.endswith('/'):
result += '/'
return result
def url_in(self, *path):
- return self.dirname(self.url, *path)
+ return self.a_dir(self.url, *path)
- def filename(self, *path):
+ def a_file(self, *path):
result = self._fn_join(*path)
if len(result) > 1:
while result.endswith(os.path.sep):
@@ -204,4 +204,4 @@
return result
def url_is(self, *path):
- return self.filename(self.url, *path)
+ return self.a_file(self.url, *path)