         }
     }
 
-    /*
-     func createprofilecatalog() {
-         if let docupath = self.docupath {
-             do {
-                 let path = docupath + (self.configpath ?? "")
-                 try Folder(path: path).createSubfolder(named: path)
-             } catch {}
-             if let macserial = self.macserial {
-                 do {
-                     let path = docupath + (self.configpath ?? "") + macserial
-                     try Folder(path: path).createSubfolder(named: path)
-                 } catch {}
-             }
-         }
-     }
-     */
-
-    // Function for getting fileURLs for a given path
-    func getfileURLs(path: String) -> [URL]? {
-        let fileManager = FileManager.default
-        if let filepath = URL(string: path) {
-            do {
-                let files = try fileManager.contentsOfDirectory(at: filepath, includingPropertiesForKeys: nil, options: .skipsHiddenFiles)
-                return files
-            } catch let e {
-                let error = e as NSError
-                self.error(error: error.description, errortype: .profilecreatedirectory)
-                return nil
-            }
-        } else {
-            return nil
-        }
-    }
-
     override init(whichroot: WhichRoot, configpath: String?) {
         super.init(whichroot: whichroot, configpath: configpath)
     }

        }
        return nil
    }

    /*
     // Function for returning profiles as array of Strings
     func getDirectorysStrings() -> [String] {
         var array = [String]()
         if let filePath = self.rootpath {
             if let fileURLs = self.getfileURLs(path: filePath) {
                 for i in 0 ..< fileURLs.count where fileURLs[i].hasDirectoryPath {
                     let path = fileURLs[i].pathComponents
                     let i = path.count
                     array.append(path[i - 1])
                 }
                 return array
             }
         }
         return array
     }
     */

    func getcatalogsasstringnames() -> [String]? {
        if let atpath = self.rootpath {

}

class Files: NamesandPaths, FileErrors {
    func getcatalogsasURLnames() -> [URL]? {
        if let atpath = self.rootpath {
            do {
