(localDir string, remoteDir string, outsideDir string, editLocation int)
| 22 | ) |
| 23 | |
| 24 | func getParentDir(localDir string, remoteDir string, outsideDir string, editLocation int) (string, error) { |
| 25 | if editLocation == editInLocal { |
| 26 | return localDir, nil |
| 27 | } else if editLocation == editInRemote { |
| 28 | return remoteDir, nil |
| 29 | } else if editLocation == editOutside { |
| 30 | return outsideDir, nil |
| 31 | } else if editLocation == editSymLinkDir { |
| 32 | return filepath.Join(outsideDir, "symlinkTargets"), nil |
| 33 | } |
| 34 | |
| 35 | return "", errors.New("CreateLocation " + strconv.Itoa(editLocation) + " unknown") |
| 36 | } |
| 37 | |
| 38 | type checkedFileOrFolder struct { |
| 39 | path string |
no outgoing calls
no test coverage detected