Tar Library

User contributed sources that have become inactive, deprecated, or generally unusable. But ... we don't really want to throw them away either.
bcohio2001
Posts: 556
Joined: Mar 10, 2007 15:44
Location: Ohio, USA
Contact:

Re: Tar Library

Post by bcohio2001 »

Picked it back up again...

Version 1.0.0 (alpha) -- Dec. 9, 2018
Code maintenance:
-- Added preprocess checks for conditional compiles.
---- Not compiled for Linux, and not even sure would compile/work under DOS.
-- Changed all 'Integer' to 'Long' types, ensuring 32 bit variables.
-- Sub SkipEntry() not correctly reading data.
---- Skipping over padding was incorrect. Thus position to read next header was wrong, giving false checksum errors.

Added:
-- Some options are set at opening of archive.
---- TarOpen(FName As String, CLO As String="", Msgs As TarMsgs Ptr=0)
---- See: 'Option implimentation.txt' for status on implimented options.
-- Sub TarDiff OverLoad (FName As String, CLO As String, ComparePath As String)
-- Sub TarDiff(FName As String, CLO As String, ComparePath As String, NewInArch() As Long, NeedToAdd() As String, NeedToExt() As Long)
---- Emulate Tar options "diff"/"d" or "compare"
-- Overloaded ExtractCurrentEntry function.
---- Extract to disk: ExtractCurrentEntry(TF As TarFile Ptr, ExtPath As String, NewName As String="", Prefix As Long=0) As Long
---- Extract to buffer (binary data): ExtractCurrentEntry(TF As TarFile Ptr, Buffer As UByte Ptr) As Long
---- Extract to string: ExtractCurrentEntry(TF As TarFile Ptr) As String

Removed:
-- Options to add or extract with 'TimeStamp'ed appended to name.
-- Function Copy2TarByName()
---- Possible multiple entries with same name.
-- Due to adding regular Tar options
---- Sub PreserveAccessTimes()

---- Sub PutAllTimes()
---- Lunix user/group info settings:
------ Sub EnableUserOverride()
------ Sub DisableUserOverride()
------ Sub ToggleUseFileUserInfo()

Changed:
-- Renamed Entry_GetCount() to GetEntryCountCurrent()
-- The absolute path restriction on functions AddFile() and AddFolder() have been removed. Will now allow relative path params.
-- Function TarValidate() no longer checks to see if file ends on 10K boundry.
---- This "error" will be replaced with checking if links are complete.

Side note:
August 26, 2017 downloaded GNUTar v1.29 to check for updates, release date May 16, 2016. (Version 1.27 was in beta stage at last check)
Also first day since release of TarLib v0.7.1 any code modifications were done.
March 13, 2018 -- "Abandoned"
October 20, 2018 -- Re-visit


Code is now at https://github.com/bcohio2001/TarLib and I hope that I get help with the Linux side of it.
bcohio2001
Posts: 556
Joined: Mar 10, 2007 15:44
Location: Ohio, USA
Contact:

Re: Tar Library

Post by bcohio2001 »

Version 1.0.1 (alpha) -- Jan. 22, 2019
Fix:
-- Option parsing errors.
---- Event file created even if not requested with '--index-file'.
---- '--path-root' and '--path-prefix' incorrectly set.

Change:
-- Rename of Overloaded ExtractCurrentEntry functions.
---- ExtractCurrentEntry_String(TF As TarFile Ptr) As String
---- ExtractCurrentEntry_Buffer(TF As TarFile Ptr, Buffer As UByte Ptr) As Long

Add:
-- Function Get_BackupDesc(TF As TarFile Ptr, Index As Long) As String
---- When internal backups are enabled, returns description of the backup requested.
Post Reply