Hi all,
Is it possible to add "clean data folder" as an icon?
cheers
Dave.
Custom Icon
-
- Posts: 23
- Joined: Fri Oct 07, 2011 8:23 pm
- Contact:
Re: Custom Icon
Hey Dave,
I couldn't find an equivalent command. You could write a quick python script to delete the caches that correspond to anything in your scene then put the command on a button.
I couldn't find an equivalent command. You could write a quick python script to delete the caches that correspond to anything in your scene then put the command on a button.
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: Custom Icon
Hi,
You can use python to remove files and directories.
luisM.
You can use python to remove files and directories.
Code: Select all
import sys, os, shutil
path= "your path"
os.remove(path) #will remove a file.
os.rmdir(path) #will remove an empty directory.
shutil.rmtree(path) #will delete a directory and all its contents.