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

move original file path error #4

Open
xinyanliang opened this issue Dec 7, 2017 · 1 comment
Open

move original file path error #4

xinyanliang opened this issue Dec 7, 2017 · 1 comment

Comments

@xinyanliang
Copy link

Check if we have already moved this file, or at least that it

        # exists to move.

replace
if not os.path.exists(filename):
with
if not os.path.exists(os.path.join('UCF-101',classname,filename)):

@YuLengChuanJiang
Copy link

that's right, but you also need replacing
os.path.exists(os.path.join('UCF-101', classname, filename)
with
os.rename(os.path.join('UCF-101', classname, filename), dest)
i think the author may make wrong uploading the .py file.

@sanolans sanolans mentioned this issue Feb 17, 2020
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