Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
Zip
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
YongYue
Zip
Commits
6a46c6c4
"examples/SimpleExample/.buckconfig" did not exist on "5987c1e35802611d404a107f2fb24860dd65644f"
Commit
6a46c6c4
authored
Jan 18, 2016
by
Roy Marmelstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved documentation
parent
c0d37950
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
Zip/Zip.swift
Zip/Zip.swift
+9
-6
No files found.
Zip/Zip.swift
View file @
6a46c6c4
...
@@ -11,21 +11,24 @@ import minizip
...
@@ -11,21 +11,24 @@ import minizip
/// Zip error type
/// Zip error type
public
enum
ZipError
:
ErrorType
{
public
enum
ZipError
:
ErrorType
{
case
FileNotFound
// File not found
/// File not found
case
UnzipFail
// Unzip error
case
FileNotFound
case
ZipFail
// Zip error
/// Unzip fail
case
UnzipFail
/// Zip fail
case
ZipFail
///
Description variable
///
User readable description
public
var
description
:
String
{
public
var
description
:
String
{
switch
self
{
switch
self
{
case
.
FileNotFound
:
return
NSLocalizedString
(
"File not found."
,
comment
:
""
)
case
.
FileNotFound
:
return
NSLocalizedString
(
"File not found."
,
comment
:
""
)
case
.
UnzipFail
:
return
NSLocalizedString
(
"Failed to unzip
zip
file."
,
comment
:
""
)
case
.
UnzipFail
:
return
NSLocalizedString
(
"Failed to unzip file."
,
comment
:
""
)
case
.
ZipFail
:
return
NSLocalizedString
(
"Failed to zip file."
,
comment
:
""
)
case
.
ZipFail
:
return
NSLocalizedString
(
"Failed to zip file."
,
comment
:
""
)
}
}
}
}
}
}
/// Zip class
public
class
Zip
{
public
class
Zip
{
// File manager
// File manager
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment