|
3 | 3 | from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes |
4 | 4 |
|
5 | 5 | """ |
6 | | -pyneofile.py — Alternate ArchiveFile core with Py2/3 compatible logic. |
| 6 | +pyneofile.py — Alternate NeoFile core with Py2/3 compatible logic. |
7 | 7 |
|
8 | 8 | Features: |
9 | 9 | - Pack / unpack / repack / archive_to_array |
@@ -225,7 +225,7 @@ def _ver_digits(verstr): |
225 | 225 |
|
226 | 226 | def _default_formatspecs(): |
227 | 227 | return { |
228 | | - 'format_magic': 'ArchiveFile', |
| 228 | + 'format_magic': 'NeoFile', |
229 | 229 | 'format_ver': '001', |
230 | 230 | 'format_delimiter': '\x00', |
231 | 231 | 'new_style': True, |
@@ -1015,7 +1015,7 @@ def _read_record_raw(fp, formatspecs): |
1015 | 1015 | return headersize_hex, fields_len_hex, vals, json_bytes, content_stored |
1016 | 1016 |
|
1017 | 1017 | def archivefilevalidate_neo(infile, formatspecs=None, verbose=False, return_details=False): |
1018 | | - """Validate an ArchiveFile using the alt parser.""" |
| 1018 | + """Validate an NeoFile using the alt parser.""" |
1019 | 1019 | fs = _ensure_formatspecs(formatspecs) |
1020 | 1020 | details = [] |
1021 | 1021 | ok_all = True |
@@ -1376,7 +1376,7 @@ def convert_foreign_to_neo(infile, outfile=None, formatspecs=None, |
1376 | 1376 | compression="auto", |
1377 | 1377 | compression_level=None): |
1378 | 1378 | """ |
1379 | | - Convert a foreign archive (zip/tar/rar/7z) into the alt ArchiveFile format. |
| 1379 | + Convert a foreign archive (zip/tar/rar/7z) into the alt NeoFile format. |
1380 | 1380 | Uses stdlib for zip/tar; requires 'rarfile' for RAR and 'py7zr' for 7z. |
1381 | 1381 | Returns bytes when outfile is None/'-'; otherwise writes a file. |
1382 | 1382 | """ |
|
0 commit comments