     private func storeElement(
         element:MVitaItemIn,
         directory:DVitaItemDirectory,
+        directoryPath:URL,
         database:Database,
         dispatchGroup:DispatchGroup)
     {
         guard
             
             let data:Data = element.data,
-            let directoryName:String = directory.name,
             let localName:String = storeLocal(
                 data:data,
-                directoryName:directoryName),
+                directoryPath:directoryPath),
             let name:String = element.name,
             let dateModified:Date = element.dateModified,
             let size:UInt64 = element.size

            self?.storeElements(
                elements:elements,
                directory:directory,
                database:database,
                completion:completion)
        }
    }
    
    private func storeElements(
        elements:[MVitaItemIn],
        directory:DVitaItemDirectory,
        database:Database,
        completion:@escaping(() -> ()))
    {

    
    private func storeLocal(
        data:Data,
        directoryPath:URL) -> String?
    {
        let randomName:String = UUID().uuidString
        let elementPath:URL = directoryPath.appendingPathComponent(
            randomName)
        
        do
        {
