예제 #1
0
 public static string xmlDB_Path_Library_XmlFile(this TM_FileStorage tmFileStorage, TM_Library library)
 {
     if (library.isNull())
     {
         return(null);
     }
     return(tmFileStorage.xmlDB_Path_Library_XmlFile(library.Id));
 }
예제 #2
0
        public static string xmlDB_Path_Library_RootFolder(this TM_FileStorage tmFileStorage, guidanceExplorer guidanceExplorer)
        {
            var libraryPath = tmFileStorage.xmlDB_Path_Library_XmlFile(guidanceExplorer);

            if (libraryPath.notNull())
            {
                return(libraryPath.directoryName()); // from 3.3 the library path is the parent folder of the Library's Xml file
            }
            return(null);
        }
예제 #3
0
        public static string xmlDB_Path_Library_XmlFile(this TM_FileStorage tmFileStorage, Guid libraryId)
        {
            var guidanceExplorer = tmFileStorage.tmXmlDatabase().xmlDB_GuidanceExplorer(libraryId);

            return(tmFileStorage.xmlDB_Path_Library_XmlFile(guidanceExplorer));
        }