We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdfe4af commit 2b3a569Copy full SHA for 2b3a569
visidata/path.py
@@ -324,10 +324,10 @@ def with_name(self, name):
324
'Return a sibling Path with *name* as a filename in the same directory.'
325
if self.is_url():
326
urlparts = list(urlparse(self.given))
327
- urlparts[2] = '/'.join(Path(urlparts[2])._parts[1:-1] + [name])
+ urlparts[2] = '/'.join(list(Path(urlparts[2]).parts[1:-1]) + [name])
328
return Path(urlunparse(urlparts))
329
else:
330
- return Path(self._from_parsed_parts(self._drv, self._root, self._parts[:-1] + [name]))
+ return Path(self._from_parsed_parts(self._drv, self._root, list(self.parts[:-1]) + [name]))
331
332
333
class RepeatFile:
0 commit comments