Skip to content

Add hasQuarantineAttribute to FileSystem#411

Merged
MaxDesiatov merged 2 commits into
mainfrom
maxd/fs-has-quarantine
Apr 20, 2023
Merged

Add hasQuarantineAttribute to FileSystem#411
MaxDesiatov merged 2 commits into
mainfrom
maxd/fs-has-quarantine

Conversation

@MaxDesiatov

Copy link
Copy Markdown
Contributor

This new function returns true if a given path has a quarantine attribute applied if when file system supports this attribute, and returns false if such attribute is not applied or it isn't supported.

This new function returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute, and returns `false` if such attribute is not applied or it isn't supported.
@MaxDesiatov MaxDesiatov requested a review from abertelrud as a code owner April 20, 2023 13:36
@MaxDesiatov MaxDesiatov self-assigned this Apr 20, 2023
@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test

Comment thread Sources/TSCBasic/FileSystem.swift Outdated
}

func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool {
#if os(macOS)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be canImport(Darwin)?

@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@MaxDesiatov

Copy link
Copy Markdown
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit 22c4a91 into main Apr 20, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/fs-has-quarantine branch April 20, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants