Example #1
0
        public override VirtualFile ChangeExtension(string oldExtension, string newExtension)
        {
            string fullname = Path.Replace(oldExtension, newExtension);

            return(DiskPath.GetFile(fullname));
        }
Example #2
0
 public DiskFile(DiskPath diskPath, FileData file)
     : base(file.Path, file.Name)
 {
     DiskPath      = diskPath;
     LastWriteTime = file.LastWriteTime;
 }
Example #3
0
 public DiskFile(DiskPath diskPath, string path, string name)
     : base(path, name)
 {
     DiskPath = diskPath;
 }
Example #4
0
 public DiskFile(DiskPath diskPath, string filename)
     : base(filename, System.IO.Path.GetFileName(filename))
 {
     DiskPath = diskPath;
 }
Example #5
0
 private DiskPath(DiskPath parentPath, string baseDirectory)
 {
     _parentPath   = parentPath;
     BaseDirectory = baseDirectory;
 }