aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/fileutil.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/manager: remove a dependency on grepAleksandr Nogikh2025-08-051-0/+27
| | | | | | Instead of calling grep (the implementations of which may differ in different environments), traverse the directory and grep files with a special pkg/osutil helper functionality.
* pkg/manager: add a test for PatchFocusAreasAleksandr Nogikh2025-07-221-0/+16
| | | | For that, make a part of the tar_test.go reusable.
* all: use special placeholder for errorsTaras Madan2023-07-241-2/+2
|
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-2/+1
|
* pkg/osutil: always remove old file in RenameDmitry Vyukov2018-12-201-1/+2
|
* pkg/osutil: provide better RenameDmitry Vyukov2018-12-171-0/+10
| | | | | os.Rename fails for cross-device renaming (e.g. to/from tmpfs). This is quite unpleasant. Provide own version that falls back to copying.
* pkg/report: handle syzkaller binariesDmitry Vyukov2017-12-121-0/+1
| | | | syzkallerNNN binaries are coming from pkg/repro.
* pkg/osutil: don't depend on syscall in appengine buildDmitry Vyukov2017-07-031-51/+0
| | | | | | Dashboard app now depends on osutil through config package. Reshuffle functions so that the package does not depend on syscall in appengine build.
* all: use consistent file permissionsDmitry Vyukov2017-07-031-0/+107
Currently we have unix permissions for new files/dirs hardcoded throughout the code base. Some places use 0644, some - 0640, some - 0600 and a variety of other constants. Introduce osutil.MkdirAll/WriteFile that use the default permissions and use them throughout the code base. This makes permissions consistent and also allows to easily change the permissions later if we change our minds. Also merge pkg/fileutil into pkg/osutil as they become dependent on each other. The line between them was poorly defined anyway as both operate on files.