We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aebd630 commit 407cfaaCopy full SHA for 407cfaa
1 file changed
cterasdk/cio/edge/types.py
@@ -39,7 +39,7 @@ def decode_reference(href):
39
@staticmethod
40
def from_server_object(server_object):
41
return EdgeResource(
42
- EdgePath(EdgeResource.decode_reference(server_object.href)),
+ EdgePath.from_context(EdgeResource.decode_reference(server_object.href)),
43
server_object.getcontenttype == 'httpd/unix-directory',
44
server_object.getcontentlength,
45
datetime.fromisoformat(server_object.creationdate),
@@ -60,7 +60,7 @@ def resolve(path):
60
return path.path
61
62
if path is None or isinstance(path, str):
63
- return EdgePath.from_context(path)
+ return EdgePath.from_context(path or '.')
64
65
raise ValueError(f'Error: Could not resolve path: {path}. Type: {type(path)}')
66
0 commit comments