Skip to content

Instantly share code, notes, and snippets.

View m1yag1's full-sized avatar
๐Ÿ˜†

Mike Arbelaez m1yag1

๐Ÿ˜†
View GitHub Profile
@m1yag1
m1yag1 / dirwatcher
Last active August 29, 2015 14:16 — forked from kdart/dirwatcher
#!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
"""
Watch for new downloads in ~/Downloads (or another directory) and take actions.
The actions are determined by the file extension (determining the mime type).
"""
from __future__ import absolute_import
from __future__ import print_function