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

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


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