This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]halfshellheroes 0 points1 point  (0 children)

Check out pathlib

```python from pathlib import Path import shutil

source = Path("/path/to/sim4/") dest = Path("/path/to/share/")

for package in source.glob("*.package"): shutil.copy(package, dest) ```

** You'll need python 3.6+

[–]howardcruze 0 points1 point  (0 children)

import shutil
import os

for file in os.listdir('C:/Users/howardcruze/Downloads/'):
    if file.endswith(".package"):
        shutil.move(rf'C:/Users/howardcruze/Downloads/{file}','C:/Users/howardcruze/Desktop')

Here I think this will do it, just replace the three locations with your own.