mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
refactor: delete the superseded top-level packages (#667)
After the switch-over only two cmd tests used browser/, filemanager/, types/, and utils/fileutil. The list test now compares against goldens of the output it proved equal to the old code's, and the export test keeps its own fixture records; the binaries built before and after are byte-identical.
This commit is contained in:
1 parent
bbd353f314
commit
a794674bd7
53 files changed
+85
-6653
No files matched your search
@@ -1,15 +0,0 @@
|
||||
package fileutil
|
||||
|
||||
import "os"
|
||||
|
||||
// FileExists checks if the file exists in the provided path.
|
||||
func FileExists(filename string) bool {
|
||||
info, err := os.Stat(filename)
|
||||
if os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return !info.IsDir()
|
||||
}
|
||||
Reference in new issue
Block a user