Skip to content

Instantly share code, notes, and snippets.

Avatar

Fredrik Wendt FredrikWendt

View GitHub Profile
View watchit.py
#!/usr/bin/env python
#
# Watches the dropfolder, and kicks off the dropfolder-scanner when a file is closed
#
import pyinotify, os, logging
logging.basicConfig(filename='/tmp/dropfolder.log')
logger = logging.getLogger('watcher')
logger.setLevel(logging.INFO)
View index.html
<html>
<head>
<title>Very nice web page</title>
</head>
<body background="white">
<h1>Welcome!</h1>
<p>This is a paragraph. It rocks!</p>
</body>
</html>
You can’t perform that action at this time.