Skip to content

Commit 17f4b2c

Browse files
committed
squash! Add (Unix) TimestampMatcher
Stat
1 parent de311d4 commit 17f4b2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rotate_backups/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def search(self, entry: str) -> FilenameMatch:
312312
return FilenameMatch(match)
313313

314314

315-
class TimestampMatch:
315+
class StatsMatch:
316316
entry: str = None
317317
field: str = None
318318

@@ -326,14 +326,14 @@ def match_to_datetime(self) -> datetime.datetime:
326326
)
327327

328328

329-
class TimestampMatcher:
329+
class StatsMatcher:
330330
timestamp: str = None
331331

332332
def __init__(self, timestamp='mtime'):
333333
self.timestamp = timestamp
334334

335335
def search(self, entry: str) -> Match:
336-
return TimestampMatch(entry, self.timestamp)
336+
return StatsMatch(entry, self.timestamp)
337337

338338

339339
class RotateBackups(PropertyManager):

0 commit comments

Comments
 (0)