MCPcopy Create free account
hub / github.com/diffgram/diffgram / get_directories_ids

Method get_directories_ids

shared/database/source_control/file.py:1122–1129  ·  view source on GitHub ↗
(session, file_id: int)

Source from the content-addressed store, hash-verified

1120
1121 @staticmethod
1122 def get_directories_ids(session, file_id: int) -> List[int]:
1123 from shared.database.source_control.working_dir import WorkingDirFileLink
1124 working_dir_sub_query = session.query(WorkingDirFileLink).filter(
1125 WorkingDirFileLink.file_id == file_id).all()
1126 res = []
1127 for elm in working_dir_sub_query:
1128 res.append(elm.working_dir_id)
1129 return res
1130
1131 @staticmethod
1132 def get_by_name_and_directory(session, directory_id, file_name, with_deleted = True):

Callers 3

view_file_by_idFunction · 0.80
process_new_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected