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

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