You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
487 B
18 lines
487 B
4 years ago
|
from abc import abstractmethod
|
||
|
|
||
|
|
||
2 years ago
|
class Reader:
|
||
4 years ago
|
def __init__(self):
|
||
|
pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def _filename(self, index, basename=False, absolute=False):
|
||
|
pass
|
||
|
|
||
|
def filename(self, index, basename=False, absolute=False):
|
||
|
return self._filename(index, basename=basename, absolute=absolute)
|
||
|
|
||
|
def filenames(self, basename=False, absolute=False):
|
||
|
return [self._filename(index, basename=basename, absolute=absolute) for index in range(len(self))]
|
||
|
|