aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/fileutil
Commit message (Collapse)AuthorAgeFilesLines
* all: use consistent file permissionsDmitry Vyukov2017-07-033-196/+0
| | | | | | | | | | | | | | | | 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.
* pkg/fileutil: port to darwinDmitry Vyukov2017-06-262-14/+24
|
* pkg/fileutil: improve CopyFileDmitry Vyukov2017-06-201-4/+5
| | | | Make CopyFile atomic and preserve permissions.
* pkg/fileutil: improve CopyFileDmitry Vyukov2017-06-191-0/+10
| | | | | - check Close error - preserve modification time
* pkg/fileutil: move from fileutilDmitry Vyukov2017-06-032-0/+175