Comments (2)
It seems that there are some system API calls in this codebase
In Zip.swift, the creationDate
and modificationDate
API's are called.
#if os(Linux)
// On Linux, setting attributes is not yet really implemented.
// In Swift 4.2, the only settable attribute is `.posixPermissions`.
// See https://github.com/apple/swift-corelibs-foundation/blob/swift-4.2-branch/Foundation/FileManager.swift#L182-L196
directoryAttributes = nil
#else
directoryAttributes = [.creationDate : creationDate, // ⬅️ ⭐️ System API call
.modificationDate : creationDate] // ⬅️ ⭐️ System API call
#endif
Also here:
do {
let fileAttributes = try fileManager.attributesOfItem(atPath: filePath)
if let fileDate = fileAttributes[FileAttributeKey.modificationDate] as? Date { // ⬅️ ⭐️ System API call
let components = Calendar.current.dateComponents([.year, .month, .day, .hour, .minute, .second], from: fileDate)
zipInfo.tmz_date.tm_sec = UInt32(components.second!)
zipInfo.tmz_date.tm_min = UInt32(components.minute!)
zipInfo.tmz_date.tm_hour = UInt32(components.hour!)
zipInfo.tmz_date.tm_mday = UInt32(components.day!)
zipInfo.tmz_date.tm_mon = UInt32(components.month!) - 1
zipInfo.tmz_date.tm_year = UInt32(components.year!)
}
if let fileSize = fileAttributes[FileAttributeKey.size] as? Double {
currentPosition += fileSize
}
}
from zip.
@marmelroy Any Plan for support Apple Privacy Manifest for cocoapods?
from zip.
Related Issues (20)
- Not able to use zip.xcframework HOT 7
- Special characters
- Error when use version 2.1.2 HOT 2
- Unable to zip file from URL HOT 1
- _
- missing symbol called - xcframework
- Can’t zip 4000 plus files HOT 1
- not work on Mac 13.4.1
- Security vulnerability in Zip package
- Please update deployment target to 11.0
- Path traversal vulnerability HOT 2
- VisionOS support
- Call to undeclared function 'ZOPENDISK64'; ISO C99 and later do not support implicit function declarations
- Apple privacy manifest file
- Has been killed by theoperating system because it is using too muchmemory. HOT 1
- Is this project not being maintained anymore?
- Is it possible to unzip to memory directly without writing to a temp file?
- Privacy Manifest HOT 4
- password does not work when trying to unzip file on MacBook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zip.