1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Updated hscommon

This commit is contained in:
Virgil Dupras
2013-10-20 16:01:27 -04:00
parent 33d9569427
commit 096e2bb78a
2 changed files with 54 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ import re
from math import ceil
import glob
import shutil
from datetime import timedelta
from . import io
from .path import Path
@@ -254,6 +255,16 @@ def multi_replace(s, replace_from, replace_to=''):
s = s.replace(r_from, r_to)
return s
#--- Date related
def iterdaterange(start, end):
"""Yields every day between ``start`` and ``end``.
"""
date = start
while date <= end:
yield date
date += timedelta(1)
#--- Files related
def modified_after(first_path, second_path):