{"record":{"id":"d81f65680c97499f","repo":"yorukot/superfile","slug":"the-file-is-not-readable-s-d81f65","errorCode":null,"errorMessage":"the file is not readable: %s","messagePattern":"the file is not readable: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/internal/function.go","lineNumber":123,"sourceCode":"\t\t\tcount++\n\t\t}\n\t\treturn nil\n\t})\n\n\treturn count, err\n}\n\nfunc countReadableFiles(dirPath string) (int, error) {\n\tcount := 0\n\n\terr := filepath.Walk(dirPath, func(path string, info os.FileInfo, err error) error {\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif !info.IsDir() {\n\t\t\tif err = checkFileReadable(path); err != nil {\n\t\t\t\tslog.Error(\"the file is not readable\", \"error\", err)\n\t\t\t\treturn fmt.Errorf(\"the file is not readable: %s\", err.Error())\n\t\t\t}\n\t\t\tcount++\n\t\t}\n\t\treturn nil\n\t})\n\n\treturn count, err\n}\n\nfunc processCmdToTeaCmd(cmd processbar.Cmd) tea.Cmd {\n\tif cmd == nil {\n\t\t// To prevent us from running cmd() on nil cmd\n\t\treturn nil\n\t}\n\treturn func() tea.Msg {\n\t\tupdateMsg := cmd()\n\t\treturn ProcessBarUpdateMsg{\n\t\t\tpMsg: updateMsg,","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/yorukot/superfile/blob/b72f550bc6e75913f48eb49fdd258e1a2df2fe88/src/internal/function.go#L105-L141","documentation":"Error \"the file is not readable: %s\" thrown in yorukot/superfile.","triggerScenarios":"Thrown at src/internal/function.go:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b72f550bc6e75913f48eb49fdd258e1a2df2fe88","analyzedAt":"2026-09-01T04:38:08.254Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}