mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Updated hscommon
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user