utils/df: Fix remote size estimation for absolute paths
Fixes #344 (closed)
We were removing the first character no matter if the URI was actually pointing to ~
or not. This would make all paths relative, and thus cd
would fail. URIs without '~' actually have absolute path components, we should treat them as such.
Checklist
-
Add entry to the CHANGELOG.md for non-trivial changes