Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with movie-tv2folder #50

Open
kmickeletto opened this issue Mar 26, 2018 · 1 comment
Open

Errors with movie-tv2folder #50

kmickeletto opened this issue Mar 26, 2018 · 1 comment

Comments

@kmickeletto
Copy link

Getting some strange errors when running this script. Seems to work fine on TV shows but not on movies.

files2folders.py: movie: /share/plexmedia/plexmedia/Movies/Boy, The (2016).mkv -> /share/plexmedia/plexmedia/Movies/Boy, The (2016)/Boy, The (2016).mkv files2folders.py: OS error: [Errno 18] Invalid cross-device link - retrying files2folders.py: OS error: [Errno 18] Invalid cross-device link - retrying files2folders.py: OS error: [Errno 18] Invalid cross-device link - aborting
Ubuntu 16.04, running under root context.

@ajkis
Copy link
Owner

ajkis commented Apr 13, 2018

Hmm this could happen if source and destination are not on the same file system.

You could try to modify script to use
import shutil

and change my_rename to use
shutil.move(src, dst)
instead of
os.rename(src, dst)

p.s. I did not test it so careful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants