Skip to content

Commit ecdadc4

Browse files
make id available since that's expected
having the .directory_id is just a legacy thing as far as I know I don't see any harm in having both and it's more friendly to new person / logical to just do .id
1 parent e3d75da commit ecdadc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/diffgram/core/directory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def convert_json_to_sdk_object(self, directory_list_json):
7070
)
7171
refresh_from_dict(new_directory, directory_json)
7272

73+
new_directory.id = new_directory.directory_id
74+
7375
# note timing issue, this needs to happen after id is refreshed
7476
new_directory.init_files()
7577
new_directory.start_iterator(

0 commit comments

Comments
 (0)