(clashDir string)
| 218 | } |
| 219 | |
| 220 | func createClashDir(clashDir string) error { |
| 221 | op := files.NewFileOp() |
| 222 | if !op.Stat(clashDir) { |
| 223 | if err := op.CreateDir(clashDir, constant.DirPerm); err != nil { |
| 224 | return err |
| 225 | } |
| 226 | } |
| 227 | return nil |
| 228 | } |
| 229 | |
| 230 | func ensureTrashDirs(clashRoot string) (string, string, error) { |
| 231 | filesDir := path.Join(clashRoot, recycleBinFilesSubdir) |
no test coverage detected