creation des classe mediafile

This commit is contained in:
2026-03-28 17:47:45 -04:00
parent dd27bdd718
commit bc028212c7
+16
View File
@@ -0,0 +1,16 @@
class MediaFile:
def __init__(self,filename,format,path):
self.filename = filename
self.format = format
self.path = path
def __str__(self):
return f"filename:{self.filename} ,Format:{self.format}, Path Name:{self.path}"
def __eq__(self,other):
if self.filename == other.filename and self.path == other.path:
return True
else:
return False