Skip to content

Instantly share code, notes, and snippets.

@stefaang
stefaang / davput.py
Created December 31, 2017 12:54 — forked from very-emmazing/davput.py
Recursive upload with cadaver
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" perform recursive uploads using cadaver
cadaver does not support recursive directory upload.
This script will upload a given path to a given URL
"""
@stefaang
stefaang / cygwin-ls
Last active April 8, 2019 11:37 — forked from billziss-gh/cygwin-ls
Cygwin ls and hidden files
#!/bin/python
import os
import sys
import argparse
parser = argparse.ArgumentParser(description='List with cygwin')
parser.add_argument('-a', '--all', action='store_true', help='include all files')
parser.add_argument('-A', '--almost-all', action='store_true', help='include all files except . and ..')
args = parser.parse_args(sys.argv[1:])