mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-09 20:47:24 +00:00
add thumbnails lg path to be removed in migration
This commit is contained in:
parent
a1c2e9fb19
commit
26e36ba36f
@ -34,12 +34,15 @@ class RemoveSmallThumbnailFolder(Migration):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def migrate():
|
def migrate():
|
||||||
path = Paths.get_sm_thumb_path()
|
thumbs_sm_path = Paths.get_sm_thumb_path()
|
||||||
|
thumbs_lg_path = Paths.get_lg_thumb_path()
|
||||||
|
|
||||||
|
for path in [thumbs_sm_path, thumbs_lg_path]:
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|
||||||
os.mkdir(path)
|
for path in [thumbs_sm_path, thumbs_lg_path]:
|
||||||
|
os.makedirs(path, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
class RemovePlaylistArtistHashes(Migration):
|
class RemovePlaylistArtistHashes(Migration):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user