示例#1
0
文件: copy.py 项目: richsmith/fluidic
def get_source(input):
    source = input.path
    if not access.is_valid_path(source):
        raise Exception("Attempted to copy from an invalid path")
    return source
示例#2
0
 def __init__(self, path):
     if not access.is_valid_path(path):
         message = "File at " + html.strong(path) + " is not accessible"
         raise Exception(message)
     self.path = path