Check wit 1#2
Conversation
delete txt
delete
| def copy_file_to_staging_area( | ||
| staging_area_path: Path, path: Path, relative_path: Path | ||
| ) -> None: | ||
| parents_path = relative_path.parents[0] |
There was a problem hiding this comment.
האם בהכרח יש איבר 0? אם כן, אולי שווה להצהיר על זה שורה לפני: assert relative_path.parents או אפילו באופן מובהק יותר: assert len(relative_path.parents) > 0
There was a problem hiding this comment.
ממה שאני מבינה זה לפי ההגדרה של PurePath.parents - האיבר ה-0 נותן את כל האבות של הקובץ. אם אין- זה נותן פשוט ".", אז זה עדיין קיים בעצם. ואז השאלה אם יש parents_path.name (שורה אח"כ).
האם עדיין יש טעם ל- assert?
Co-authored-by: Yam Mesicka <yammesicka@gmail.com>
Co-authored-by: Yam Mesicka <yammesicka@gmail.com>
| if not glob(str(path_in_repository)): | ||
| raise NotImplementedError( | ||
| f"The file {file_path} was deleted. Deleting files not implemented yet." | ||
| ) |
There was a problem hiding this comment.
החלטתי להוריד את השגיאה הזאת מstatus, כי תכלס אם מוחקים קובץ זה לא אמור להפריע לבדיקת הסטטוס של הקבצים, ולעומת זאת אם אשאיר את השגיאה הזאת היא כל פעם תקפוץ בגלל שהקובץ נמחק.
עדיין יש אותה בmerge.
|
Hi Yam, I believe I finished. I left some questions\ comments. Thanks a lot :) |
Hi,
Please check the project folder.
Thanks!