Skip to content

Commit ca7ff8f

Browse files
authored
Fixed file's groupOwnerName in attributesOfItem()
Fixed group owner name assigned to `.groupOwnerID` instead of `.groupOwnerName`
1 parent 78a22e6 commit ca7ff8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSFileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ open class FileManager : NSObject {
305305
let grd = getgrgid(s.st_gid)
306306
if grd != nil && grd!.pointee.gr_name != nil {
307307
let name = String(cString: grd!.pointee.gr_name)
308-
result[.groupOwnerAccountID] = name
308+
result[.groupOwnerAccountName] = name
309309
}
310310

311311
var type : FileAttributeType

0 commit comments

Comments
 (0)