John-Mark Gurney
725f32102b
add code to properly dump os.stat_result's..
2 years ago
John-Mark Gurney
1267f53d3a
Merge branch 'main' of ssh://gold.funkthat.com/home/jmg/git.repos/medashare
2 years ago
John-Mark Gurney
92bfafa077
make tests pass on FreeBSD.. implement hostuuid for it...
Hard code stat results so that the tests pass on a different checkout
w/ different mtimes..
2 years ago
John-Mark Gurney
712ceeca74
add script to autogen, it's a hack by creating/upgading a db, but works
Looks like this is the only way:
https://github.com/sqlalchemy/alembic/discussions/1086
2 years ago
John-Mark Gurney
4ddccd6fbd
no cover the test code and a few other places...
2 years ago
John-Mark Gurney
e1499cc30e
covering this doesn't make sense, will never "downgrade" to empty db
2 years ago
John-Mark Gurney
c0b475e1d1
move tag cache to it's own file..
2 years ago
John-Mark Gurney
e7f9cdc846
add tests for the TagCache, fix a bug, docs, drop unneeded sorted..
2 years ago
John-Mark Gurney
ab7d88f6d3
allow browsing dirs as well, make the displayed list work better
2 years ago
John-Mark Gurney
5006cb622f
drop unneed arg to ObjectStore, add type column via migration
add tests for migration, good example for future needs..
2 years ago
John-Mark Gurney
633a957bbc
change the ignore to match the correct extension.
2 years ago
John-Mark Gurney
0a036e092c
switch to edgold from cryptography.
We were only using the ed448 code, and cryptography requires rust
to compile, and contains a LOT of other code, while edgold is much
smaller, and doesn't require a rust compiler, and will work on more
systems.. Keep around an old identity generated from cryptography
to make sure the two libraries are compatible.
2 years ago
John-Mark Gurney
39a0ef6d50
add database migration so that the db can be more easily updated now..
2 years ago
John-Mark Gurney
233b9fe865
needed to make setup.py work..
2 years ago
John-Mark Gurney
8dbbdd2406
fix interactive mode, use environment var to change location
2 years ago
John-Mark Gurney
f8f84632ef
standardize path name fetching...
2 years ago
John-Mark Gurney
dd434d452b
use a decorator to standardize getting the needed structures
2 years ago
John-Mark Gurney
46e88fde76
now that updates are immediately written, name it just quit
2 years ago
John-Mark Gurney
003612d47e
convert the main data store to SQLite3...
one minor issue is that the identity object gets dump'd twice..
2 years ago
John-Mark Gurney
5c3ec4fc78
big update, fix a couple bugs, and add an interactive mode
make sure tags/properties are unique...
support tuples in asn1coder, for the tag cache
make sure that only one of each uuid is stored in hashes, and that
it is the last modified version.
for containers, since we're uniquified them, just replace them..
2 years ago
John-Mark Gurney
dcc46bc962
add comment
2 years ago
John-Mark Gurney
356be8332b
support mappings, that is one host has the same files as another...
this fleshes out hostuuid better..
add a more useful debug print..
2 years ago
John-Mark Gurney
56503fdcdb
add host object, to be used for mappings...
2 years ago
John-Mark Gurney
0d0ae8ead4
make ms:tag unique, drop dups..
2 years ago
John-Mark Gurney
c004e8fdb5
add support for torrents with a single file in them..
2 years ago
John-Mark Gurney
f2db9119e4
print out which container didn't have all it's files added
2 years ago
John-Mark Gurney
e5e22a0361
allow updating the container object...
2 years ago
John-Mark Gurney
4358f3429c
this was fixed in recent commit, when loadobj drops the old one..
2 years ago
John-Mark Gurney
47dc79e177
ignore the dist dir.
2 years ago
John-Mark Gurney
609ef37b96
dump out the identity as well, makes it easier to import
2 years ago
John-Mark Gurney
cf7a81b22a
add option to sign on import..
If the identity changed, generate a new uuid, and set created_by and
modified appropriately...
2 years ago
John-Mark Gurney
f9659df3b3
make sure that importing only takes the latest FileObject...
the modified is the correct, not mtime, as someone can put an
"older" modified file, but at a later time, so it's assumed
that the most recently modified fileobject has the most up to
date data..
2 years ago
John-Mark Gurney
549de4082c
add container support, handle when a fileobject exists, but no metadata
The later happens after importing a container.
2 years ago
John-Mark Gurney
123a9597a5
properly escape file names when using rglob
2 years ago
John-Mark Gurney
42d62ac097
create a more simple validate function, fix test to be more complete
2 years ago
John-Mark Gurney
4091bc38cc
support encoding bytes...
2 years ago
John-Mark Gurney
c895cd2ebd
simplify regex in test..
2 years ago
John-Mark Gurney
22970029de
add a file that should have been added a while back..
2 years ago
John-Mark Gurney
cd9159ddf3
add auto command to populate some standard fields, e.g. mimetype
2 years ago
John-Mark Gurney
729f22e431
add bencode tests to run automaticaly, no cover unused func
2 years ago
John-Mark Gurney
d1d4c7edc6
Add 'ui/medashare/btv/' from commit '85f5c9a03e3773b6868ae83a075c9df8fc70c4d4'
git-subtree-dir: ui/medashare/btv
git-subtree-mainline: 4a28327b7d
git-subtree-split: 85f5c9a03e
2 years ago
John-Mark Gurney
4a28327b7d
forgot this modifications..
2 years ago
John-Mark Gurney
de98507cd3
support specifying multiple files at once
2 years ago
John-Mark Gurney
85f5c9a03e
add doc strings, and limit what functions are exposed..
2 years ago
John-Mark Gurney
893a9b7d9e
update comment..
2 years ago
John-Mark Gurney
7f94e49bc0
move badfiles to class, encoding is ONLY UTF-8 per BEP-3
https://www.bittorrent.org/beps/bep_0003.html
2 years ago
John-Mark Gurney
53c4ac2f39
minor improvements to coverage, ignoring buggy/tests
2 years ago
John-Mark Gurney
4b2b5a1b0a
make sure json encoding fails on unhandled classes..
2 years ago
John-Mark Gurney
0865595d3a
covert to iterating via files instead of pieces..
This uses an index to quickly look up what pieces are part of a
file, and then checks that they are all valid, this should be faster
as it is likely that the torrent has more pieces than files (few
large files, vs many, many small files)..
2 years ago
John-Mark Gurney
809b5d6c63
change how validate is implemented, return files good/bad..
2 years ago