(basePath, content string)
| 30 | ) |
| 31 | |
| 32 | func createRegularFile(basePath, content string) (string, error) { |
| 33 | newFolder := filepath.Join(basePath, "regular") |
| 34 | err := os.Mkdir(newFolder, 0755) |
| 35 | if err != nil { |
| 36 | return "", err |
| 37 | } |
| 38 | |
| 39 | newFile := filepath.Join(newFolder, "foo.txt") |
| 40 | err = os.WriteFile(newFile, []byte(content), 0644) |
| 41 | return filepath.Join("regular", "foo.txt"), err |
| 42 | } |
| 43 | |
| 44 | func fileInSymlinkedFolder(basePath, targetFile string) (string, error) { |
| 45 | symlinkFolder := filepath.Join(basePath, "symlink_folder") |
no test coverage detected
searching dependent graphs…