Spaces:
Sleeping
Sleeping
Create Fix_lfs.py
Browse files- Fix_lfs.py +8 -0
Fix_lfs.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
if os.path.exists("Syllabus.pdf"):
|
4 |
+
print("Syllabus.pdf is already a normal file.")
|
5 |
+
else:
|
6 |
+
os.system("git lfs pull") # Ensure LFS file is downloaded
|
7 |
+
os.system("git lfs migrate export --include='Syllabus.pdf'") # Convert to normal file
|
8 |
+
print("Syllabus.pdf converted to normal file!")
|