Thanks For The Killer Game of Crisco Twister

So Donny’s in town and Tim came up but we never ended up finding Donny, Figgy, and dowem. Which is weak. We still made a good run of it and drinking our share.
I relisted my mac on ebay today. It already sold on ebay once but it turned out the guy that won used someone elses paypal account. Good thing I didn’t ship it. You can see there new auction here . Since I’m transfering all my files over to my Linux Desktop I had a small problem. OS X leaves .DS_Store files everywhere. I wrote a python script to clean them out.
#!/usr/bin/env python
import os, os.path

fsbranch = ‘/home/matthew/Desktop/Media/Music/’
lines = []

def findFiles(arg,dir,files):
a = os.path.abspath(dir)
if files:
files.sort()
for file in files:
fullpath = ‘%s/%s’ % (dir, file)
if os.path.isfile(fullpath):
if file == ‘.DS_Store’:
lines.append(fullpath)
os.unlink(fullpath)

file = open(’/home/matthew/kill_results.txt’, ‘w’)
for line in lines:
file.write(line+’\n’)
file.close()

os.path.walk(fsbranch, findFiles, ”)

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment