1 package fsutil 2 3 import ( 4 "os" 5 ) 6 7 // EnsureMaxPermissions tests the provided file info to make sure the 8 // permission bits matches the provided. 9 // On Windows system the permission bits are not really compatible with 10 // UNIX-like permission bits. By setting the UNIX-like permission bits 11 // on a Windows system only read/write by all users can be achieved. 12 // See this issue for tracking and more details: 13 // https://github.com/theupdateframework/go-tuf/issues/360 14 // Currently this method will always return nil. 15 func EnsureMaxPermissions(fi os.FileInfo, perm os.FileMode) error { 16 return nil 17 } 18