Caleb Gardner
b2d6ff56f6
Added uid/guid support.
...
Added permission support.
2021-01-09 02:30:04 -06:00
Caleb Gardner
4b3d5d12f8
Setup for differnet types of compression for Writer
...
Added some TODOs
2021-01-08 14:35:32 -06:00
Caleb Gardner
3f71404a2a
Re-Write of the Writer to make it simpler
2021-01-08 05:09:38 -06:00
Caleb Gardner
35d22b4bd0
Removed close function from squashfs.File
...
This seems to cause issues in ver specific circumstances and ultimately, isn't needed.
v0.3.7
2021-01-06 12:56:09 -06:00
Caleb Gardner
97b12090c6
Trying to figure out the best way to convert files
2021-01-05 05:53:16 -06:00
Caleb Gardner
43fe4f91a2
More work on Writer
...
Adding files to the Writer should work properly now (except symlinks)
Threaded the adding of files.
Added ability to ignore errors when adding files.
2021-01-03 04:39:39 -06:00
Caleb Gardner
9524a2c192
More work on Writer
2021-01-02 17:10:21 -06:00
Caleb Gardner
162b228881
Some beginning work on squashfs.Writer
...
Just laying out some of the functions and what they do.
2021-01-01 10:54:09 -06:00
Caleb Gardner
7f87999a8f
Merge branch 'main' of https://github.com/CalebQ42/squashfs into main
2020-12-28 11:51:08 -06:00
Caleb Gardner
47c28baf87
Improved data structure for structs.
...
Thanks gopls with VS Code
2020-12-28 11:50:56 -06:00
Caleb Gardner
a298a3d7b5
Fixed first byte of data blocks being cut off
v0.3.6
2020-12-27 02:10:51 -06:00
Caleb Gardner
89ec7eb0fb
Fixed GetSymlinkFile
...
Added GetSymlinkFileRecursive
v0.3.5
2020-12-16 02:39:35 -06:00
Caleb Gardner
d63ba47818
Added Reader.ModTime
v0.3.4
2020-12-11 01:39:08 -06:00
Caleb Gardner
495d2345a4
File now implements os.FileInfo
2020-12-11 01:38:53 -06:00
Caleb Gardner
6dfcb1cf80
Merge branch 'main' of https://github.com/CalebQ42/squashfs into main
v0.3.3
2020-12-10 08:52:58 -06:00
Caleb Gardner
c7593eaff3
Added Reader.ExtractTo for ease of use
2020-12-10 08:52:49 -06:00
Caleb Gardner
135403032f
Updated README
v0.3.2
2020-12-09 01:45:58 -06:00
Caleb Gardner
5c3bf8d528
Implemented the rest of the compression types
...
Haven't implemented LZO due to limited libraries
2020-12-09 01:40:30 -06:00
Caleb Gardner
1da97137a5
Implemented #1
...
You can dereference a symlink when extracting.
v0.3.1
2020-12-08 09:41:10 -06:00
Caleb Gardner
e5d4d0902f
Finished wildcard support.
...
Realized that path.Match works perfectly for my wildcard needs.
v0.3.0
2020-12-07 10:41:45 -06:00
Caleb Gardner
c0f3695cca
Working on wildcards before next release.
2020-12-05 15:05:19 -06:00
Caleb Gardner
89b0a41ab9
Figured out it was the filters for XZ that was causing problems
...
Added lzma and xz decompression.
Renamed Zlib to Gzip
2020-12-04 05:36:58 -06:00
Caleb Gardner
a894e2efb9
Removed XZ compression.
...
When testing the archlinux, xz compression couldn't seem to extract ANY files.
Testing extraction with the appimage works though. So that's good.
2020-12-02 01:56:24 -06:00
Caleb Gardner
fef7bec20d
Extracting is mostly finished.
...
Fixed reading metadata and data blocks that are the exactly correct size
2020-12-02 01:05:31 -06:00
Caleb Gardner
28bb0f873a
Things just aren't working right now...
...
Had to re-write a seemingly fine for loop because it wouldn't increment
Extracting just isn't working right now.
I'm waaaay too tired for this right now, lol.
2020-12-01 15:29:25 -06:00
Caleb Gardner
e302d98665
Further work on extracting
...
Extracting files is threaded with goroutines.
Extracting also sets the proper UID and GUID
Made recursive children getting threaded with goroutines
Decided I will allow wildcards in paths. Hasn't been implemented though.
Fixed issues with ExtendedDirectory reading (I was using a uint16 instead of a uint32)
I couldn't test basically any of this. somehow a for loop isn't incrementing. For seemingly no reason.
2020-12-01 06:14:09 -06:00
Caleb Gardner
1254df2861
Working on extracting files.
2020-11-30 15:13:47 -06:00
Caleb Gardner
c5c6291643
Some more work on ExtractTo
...
Added Xz compression support
Started testing using a big squashfs fil (particularly the squashfs from an Arch Linux install img)
2020-11-30 03:53:57 -06:00
Caleb Gardner
508a33b323
Starting work on ExtractTo from File
...
When using ExtractTo, will automatically set the correct permissions
Will also be able to extract folders
2020-11-29 15:55:06 -06:00
Caleb Gardner
c5f1962e72
Some documentation changes
2020-11-29 03:07:34 -06:00
Caleb Gardner
faf9153323
Added zlib compression for absolutely zero reason
2020-11-28 11:05:38 -06:00
Caleb Gardner
e20213c3f7
Reorganization.
2020-11-28 05:03:56 -06:00
Caleb Gardner
edd63a422b
Support for ../ in directory paths
v0.2.1
2020-11-28 02:39:58 -06:00
Caleb Gardner
938fd30d73
Updated README
2020-11-28 02:35:46 -06:00
Caleb Gardner
cea69188d4
Symlink file support
...
You can get the path that the symlink is pointing to, AND get the squashfs.File for it.
You can also now give a path FROM a given squashfs.File directory.
2020-11-28 02:22:48 -06:00
Caleb Gardner
23ec7ea6dd
First version of File interface.
...
This will allow you to easily find and extract files.
Extraction of whole folders coming next. (Maybe)
v0.2.0
2020-11-27 00:36:21 -06:00
Caleb Gardner
8358cb2805
Added a couple ways to find a particular file.
2020-11-26 09:16:55 -06:00
Caleb Gardner
9471b93ead
Working on a better API to interact with squashfs
...
New API uses a File that can hold more information.
2020-11-26 03:47:44 -06:00
Caleb Gardner
77222f55f5
More setup for Files.
2020-11-25 13:57:38 -06:00
Caleb Gardner
9beca864c3
Starting work on file.
...
File will be the primary way to interact with squashfs files in the future.
I will be making Files for both reading and writing
2020-11-25 13:20:42 -06:00
Caleb Gardner
b28b4ae978
Test now use a straight appimage.
...
Reads straight from the appimage instead of extracting the squashfs first
2020-11-25 12:12:16 -06:00
Caleb Gardner
426903a222
Renamed library to squashfs for ease of use
v0.1.1
2020-11-25 10:51:59 -06:00
Caleb Gardner
dcb26057fa
Updated README
2020-11-25 08:57:18 -06:00
Caleb Gardner
b21d16d5aa
Added documentation badge
v0.1.0
2020-11-25 08:38:58 -06:00
Caleb Gardner
f38db6107f
updated go module
2020-11-25 08:32:43 -06:00
Caleb Gardner
c0291e3ac7
Made a few straggler functions private
2020-11-25 08:31:24 -06:00
Caleb Gardner
afbc991f60
Made most functions private.
...
This will probably be the first version of the library.
2020-11-25 08:27:15 -06:00
Caleb Gardner
5d888eb761
Updated README
2020-11-25 04:30:41 -06:00
Caleb Gardner
f0f32a2445
FILE EXTRACTION WORKS!
2020-11-25 04:26:48 -06:00
Caleb Gardner
af36f9b9aa
Documentation!
...
Though may functions/structs will be made private, I still want things documented.
2020-11-25 01:15:54 -06:00