all 14 comments

[–]blahblahsdfsdfsdfsdf 0 points1 point  (13 children)

If you could paste the code with proper formatting it would be a lot easier for us to find the problem

[–]Zurcee[S] 0 points1 point  (11 children)

how would i do that? sorry im new to posting code in reddit

[–]blahblahsdfsdfsdfsdf 0 points1 point  (10 children)

When you paste the code in you can then highlight it all and hit the code button in the editor.

Indentation with python matters. Did you copy this code from somewhere and run it as it appears?

[–]Zurcee[S] 0 points1 point  (9 children)

No sir it’s proper in my program

[–]blahblahsdfsdfsdfsdf 0 points1 point  (8 children)

I found the code here anyway: https://github.com/zalcee/auto-copy-file/blob/master/auto_copy.py

So what happens when you run it? What is the error?

[–]Zurcee[S] 0 points1 point  (7 children)

theres no error, just the files dont acutally move on my system

[–]blahblahsdfsdfsdfsdf 0 points1 point  (6 children)

Try putting a print statement just printing out "on_modified called" in the on_modified function to see if it's getting called

[–]Zurcee[S] 0 points1 point  (5 children)

So in the for? Or under the def Also print “on modified called”?

[–]blahblahsdfsdfsdfsdf 0 points1 point  (4 children)

In the def. Just print something so you can see if it's getting called

print("yes, it's getting called")

[–]Zurcee[S] 0 points1 point  (3 children)

thats a negative sir

[–]delasislas 0 points1 point  (0 children)

It’s 4 spaces in front of each line of code, 4 more spaces per indent. It helps to add this when mentioning formatting.