-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change hasQuarantineAttribute(_:)
to hasAttribute(_:_:)
#414
Conversation
@swift-ci test |
@swift-ci test |
@@ -347,9 +347,9 @@ private struct LocalFileSystem: FileSystem { | |||
return FileInfo(attrs) | |||
} | |||
|
|||
func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { | |||
func hasAttribute(name: String, _ path: AbsolutePath) -> Bool { | |||
#if canImport(Darwin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look like getxattr
is available with import Glibc
so I'm not adding a check for Linux in this condition for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, okay; that seems like a different bug to resolve separately.
@swift-ci test windows |
@swift-ci clean test macos |
@@ -347,9 +347,9 @@ private struct LocalFileSystem: FileSystem { | |||
return FileInfo(attrs) | |||
} | |||
|
|||
func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { | |||
func hasAttribute(name: String, _ path: AbsolutePath) -> Bool { | |||
#if canImport(Darwin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, okay; that seems like a different bug to resolve separately.
@swift-ci test |
@swift-ci test windows |
@swift-ci clean test macos |
@swift-ci test macos |
@swift-ci test macos |
04acdab
to
e93cb40
Compare
@swift-ci test |
hasQuarantineAttribute(_:)
to hasAttribute(name:_:)
hasQuarantineAttribute(_:)
to hasAttribute(_:_:)
@swift-ci test windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks great!
@swift-ci test |
@swift-ci test windows |
1 similar comment
@swift-ci test windows |
@swift-ci test |
@swift-ci test windows |
Makes the attribute reading API more generic as discussed at #412 (comment)