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.

24 lines
528 B

""" File Sytem Loading """
import os
from loader import Loader
from utils import read_image
class FSLoader(Loader):
""" File System Loader Class """
def load(uri):
Load the file system ressource
:return: <RGB> image
return read_image(uri)
def uri_validator(uri):
Validate the uri is a filesystem file
:return: <bool> True is a valid uri
return os.path.exists(uri)