495 remotefsInterface = ( |
495 remotefsInterface = ( |
496 ericApp().getObject("EricServer").getServiceInterface("FileSystem") |
496 ericApp().getObject("EricServer").getServiceInterface("FileSystem") |
497 ) |
497 ) |
498 |
498 |
499 dn = self.currentDirectory() if useCurrent else self.project.getProjectPath() |
499 dn = self.currentDirectory() if useCurrent else self.project.getProjectPath() |
500 dlg = NewDirectoryDialog(strPath=dn, defaultDirectory=dn, remote=isRemote) |
500 dlg = NewDirectoryDialog( |
|
501 strPath=dn, defaultDirectory=dn, remote=isRemote, parent=self |
|
502 ) |
501 if dlg.exec() == QDialog.DialogCode.Accepted: |
503 if dlg.exec() == QDialog.DialogCode.Accepted: |
502 dirname, addToProject = dlg.getDirectory() |
504 dirname, addToProject = dlg.getDirectory() |
503 exists = ( |
505 exists = ( |
504 remotefsInterface.exists(dirname) |
506 remotefsInterface.exists(dirname) |
505 if isRemote |
507 if isRemote |