See `src/python/dxpy/scripts/dx_build_app.py` for `parse_destination`, which calls `resolve_path` in `src/python/dxpy/utils/resolver.py`. Neither is really part of the public API.