                         alert.addAction(updateAction)
                         presentViewController(alert, animated: true, completion: nil)
                     }else{      //入力したファイル名が被ってない場合
-                        self.AAA(Inboxpath)
+                        self.FileSaveAndMove(Inboxpath)
                         self.dismissViewControllerAnimated(true, completion: nil)
                     }
                 }


                                do{
                                    try filemanager.removeItemAtPath(self.Libralypath+"/"+self.filenamefield.text!)
                                    self.AAA(Inboxpath)
                                }catch{
                                    print(error)
                                }

        }
    }
    
    func FileSaveAndMove(Inboxpath: String){
        do{
            try filemanager.moveItemAtPath(Inboxpath+self.filename, toPath: self.Libralypath+"/"+self.filenamefield.text!)

