Created
November 9, 2012 08:53
-
-
Save naoyeye/4044560 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class post_image_delete: | |
@session.login_required | |
def POST(self, arg): | |
data = web.input() | |
path = data.path | |
part_name = data.part_name | |
homedir = os.getcwd() | |
imgPath = homedir + path | |
if os.path.isfile(imgPath + '/.DS_Store'): | |
os.remove(imgPath + '/.DS_Store') | |
files = glob.glob(imgPath + '/' + part_name + '*') | |
for file in files: | |
os.remove(file) | |
success = "s" | |
return success |
bjjay
commented
Nov 9, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment