Open danielschenk opened 1 year ago
You can bypass this problem by adding those lines after creating the dir:
node.mkdir('test')
node._children = None
node.data.update(node.connection.get_node_data(node.data["docwsid"]))
node = node['test'] # <-- success
The problem
Operations on a
DriveNode
likemkdir
,upload
anddelete
are not visible on the node becauseDriveNode
never fetches the children again if done once. For example:This makes it hard to create folders recursively, for example.
Environment
pip show pyicloud
): 1.0.0python -V
): 3.10.9Traceback/Error logs
Additional information