예제 #1
0
        public Option <Stream> Read(ContentPath path)
        {
            var fsPath = path.GetFileSystemPath(rootDirectory);

            if (File.Exists(fsPath))
            {
                return(File.OpenRead(fsPath));
            }
            else
            {
                return(Option.None);
            }
        }
예제 #2
0
 string GetFileSystemPath(ContentPath path)
 {
     return(path.GetFileSystemPath(rootDirectory));
 }