From 2d49d3d84359b30267a8fbdca5d81fc2b96ee3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 16 Aug 2025 15:50:08 +0200 Subject: [PATCH] [path] add '__str__()' method --- gallery_dl/path.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/path.py b/gallery_dl/path.py index eecbd6cf..63816222 100644 --- a/gallery_dl/path.py +++ b/gallery_dl/path.py @@ -134,6 +134,9 @@ class PathFormat(): basedir = self.clean_path(basedir) self.basedirectory = basedir + def __str__(self): + return self.realpath + def open(self, mode="wb"): """Open file and return a corresponding file object""" try: