From 7f29678088a9c115de2a6a1ec00ae39ebf73f2c2 Mon Sep 17 00:00:00 2001 From: xieguigang Date: Sat, 29 Jun 2019 00:33:24 +0800 Subject: [PATCH] split source files --- 47-dotnet_Microsoft.VisualBasic.vbproj | 3 ++- ApplicationServices/Tools/Zip/Options.vb | 24 +++++++++++++++++++ ApplicationServices/Tools/{ => Zip}/ZipLib.vb | 24 +------------------ 3 files changed, 27 insertions(+), 24 deletions(-) create mode 100644 ApplicationServices/Tools/Zip/Options.vb rename ApplicationServices/Tools/{ => Zip}/ZipLib.vb (97%) diff --git a/47-dotnet_Microsoft.VisualBasic.vbproj b/47-dotnet_Microsoft.VisualBasic.vbproj index dfbd1b35..6e997baa 100644 --- a/47-dotnet_Microsoft.VisualBasic.vbproj +++ b/47-dotnet_Microsoft.VisualBasic.vbproj @@ -946,6 +946,7 @@ + @@ -1551,7 +1552,7 @@ - + diff --git a/ApplicationServices/Tools/Zip/Options.vb b/ApplicationServices/Tools/Zip/Options.vb new file mode 100644 index 00000000..2f031264 --- /dev/null +++ b/ApplicationServices/Tools/Zip/Options.vb @@ -0,0 +1,24 @@ +Namespace ApplicationServices.Zip + + ''' + ''' Used to specify what our overwrite policy + ''' is for files we are extracting. + ''' + Public Enum Overwrite + Always + IfNewer + Never + End Enum + + ''' + ''' Used to identify what we will do if we are + ''' trying to create a zip file and it already + ''' exists. + ''' + Public Enum ArchiveAction + Merge + Replace + [Error] + Ignore + End Enum +End Namespace \ No newline at end of file diff --git a/ApplicationServices/Tools/ZipLib.vb b/ApplicationServices/Tools/Zip/ZipLib.vb similarity index 97% rename from ApplicationServices/Tools/ZipLib.vb rename to ApplicationServices/Tools/Zip/ZipLib.vb index 691bdd10..3ccac84a 100644 --- a/ApplicationServices/Tools/ZipLib.vb +++ b/ApplicationServices/Tools/Zip/ZipLib.vb @@ -69,7 +69,7 @@ Imports Microsoft.VisualBasic.Language Imports Microsoft.VisualBasic.Language.UnixBash Imports Microsoft.VisualBasic.Scripting.MetaData -Namespace ApplicationServices +Namespace ApplicationServices.Zip #If NET_40 = 0 Then @@ -86,28 +86,6 @@ Namespace ApplicationServices Url:="http://www.codeproject.com/Articles/381661/Creating-Zip-Files-Easily-in-NET")> Public Module ZipLib - ''' - ''' Used to specify what our overwrite policy - ''' is for files we are extracting. - ''' - Public Enum Overwrite - Always - IfNewer - Never - End Enum - - ''' - ''' Used to identify what we will do if we are - ''' trying to create a zip file and it already - ''' exists. - ''' - Public Enum ArchiveAction - Merge - Replace - [Error] - Ignore - End Enum - ''' ''' Unzips the specified file to the given folder in a safe ''' manner. This plans for missing paths and existing files