Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Search found 2 matches

by iamcyrus
Tue Nov 02, 2010 8:50 am
Forum: General Support
Topic: Directory Watcher - Copy Files
Replies: 23
Views: 28769

Re: Directory Watcher - Copy Files

iamcyrus how do you apply ignore file types to the folder.

Also is there any way of moving the contents only of each folder. Just that i would like to avoid having to have an extra step to clear up all the junk files.

Great work by the way guys.

Try this
import shutil
import os ...
by iamcyrus
Mon Nov 01, 2010 9:04 am
Forum: General Support
Topic: Directory Watcher - Copy Files
Replies: 23
Views: 28769

Re: Directory Watcher - Copy Files

The above script was very helpful to me. Thanks a lot Kirkb! However, I required it to copy folders as well. Adding these two lines to the end will allow it to also work for folders.

if isFolder == True:
shutil.copytree(FileName,os.path.join('E:\\media\\unprocessed\\',os.path.basename(FileName ...