예제 #1
0
        public PackageFileInfo(TraceLabSDK.Component.Config.BasePath filePath)
        {
            //1. First record current absolute path to real file -> this file is going to be added to package
            m_absoluteLocation = Path.GetFullPath(filePath.Absolute);

            //2. Determine new relative directory by eliminating '../../' -> it has to be subdirectory, so we can add it to the package.
            m_relativeLocation = DetermineRelativePathToSubDir(filePath.Relative, out m_foldersPath);
        }
예제 #2
0
 /// <summary>
 /// Sets the experiment location root, which all relative paths should be relative to.
 /// </summary>
 /// <param name="experimentLocationRoot">The experiment location root.</param>
 public void SetExperimentLocationRoot(string experimentLocationRoot, bool transformRelative)
 {
     TraceLabSDK.Component.Config.BasePath      filePath = Value as TraceLabSDK.Component.Config.BasePath;
     TraceLabSDK.Component.Config.DirectoryPath dirPath  = Value as TraceLabSDK.Component.Config.DirectoryPath;
     if (filePath != null)
     {
         filePath.SetDataRoot(experimentLocationRoot, transformRelative);
     }
     else if (dirPath != null)
     {
         dirPath.SetDataRoot(experimentLocationRoot, transformRelative);
     }
 }