38086-vm/move_project.py
2026-02-08 06:12:20 +00:00

34 lines
855 B
Python

import os
import shutil
DEST = 'meezan'
EXCLUDE = {'.git', '.gemini', DEST, 'move_project.py'}
def move_project():
# Ensure destination exists
if not os.path.exists(DEST):
os.makedirs(DEST)
print(f"Created directory: {DEST}")
# Iterate and move
for item in os.listdir('.'):
if item in EXCLUDE:
continue
# specific check for .env to avoid errors if it doesn't exist yet but user mentioned it
if item == '.env':
pass # allow moving .env if it exists
src = item
dst = os.path.join(DEST, item)
try:
print(f"Moving {src} -> {dst}...")
shutil.move(src, dst)
except Exception as e:
print(f"Error moving {src}: {e}")
if __name__ == "__main__":
move_project()
print("Move complete.")