16 lines
439 B
Python
16 lines
439 B
Python
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
|
|
|