Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Jun 12, 2024
1 parent b9c1081 commit 11499c4
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,34 +157,37 @@
from StringIO import StringIO as BytesIO;

__use_pysftp__ = False;
__use_alt_format__ = False;
if(not havepysftp):
__use_pysftp__ = False;
__file_format_name__ = "CatFile";
__program_name__ = "Py"+__file_format_name__;
__file_format_lower__ = __file_format_name__.lower();
__file_format_magic__ = __file_format_name__;
__file_format_len__ = len(__file_format_magic__);
__file_format_hex__ = binascii.hexlify(__file_format_magic__.encode("UTF-8")).decode("UTF-8");
__file_format_delimiter__ = "\x00";
__file_format_ver__ = "001";
__use_new_style__ = True;
__use_advanced_list__ = True;
__use_alt_inode__ = False;
__file_format_extension__ = ".cat";
'''
__file_format_name__ = "FastArchive";
__program_name__ = "Py" + __file_format_name__;
__file_format_lower__ = __file_format_name__.lower();
__file_format_magic__ = "FstArch";
__file_format_len__ = len(__file_format_magic__);
__file_format_hex__ = binascii.hexlify(__file_format_magic__.encode("UTF-8")).decode("UTF-8");
__file_format_delimiter__ = "\x1F"; # Using a non-printable ASCII character as delimiter
__file_format_ver__ = "001";
__use_new_style__ = True;
__use_advanced_list__ = False;
__use_alt_inode__ = False;
__file_format_extension__ = ".fast";
'''
if(not __use_alt_format__):
''' Format Info by Kazuki Przyborowski '''
__file_format_name__ = "CatFile";
__program_name__ = "Py"+__file_format_name__;
__file_format_lower__ = __file_format_name__.lower();
__file_format_magic__ = __file_format_name__;
__file_format_len__ = len(__file_format_magic__);
__file_format_hex__ = binascii.hexlify(__file_format_magic__.encode("UTF-8")).decode("UTF-8");
__file_format_delimiter__ = "\x00";
__file_format_ver__ = "001";
__use_new_style__ = True;
__use_advanced_list__ = True;
__use_alt_inode__ = False;
__file_format_extension__ = ".cat";
else:
''' Format Info Generated by ChatGPT '''
__file_format_name__ = "FastArchive";
__program_name__ = "Py" + __file_format_name__;
__file_format_lower__ = __file_format_name__.lower();
__file_format_magic__ = "FstArch";
__file_format_len__ = len(__file_format_magic__);
__file_format_hex__ = binascii.hexlify(__file_format_magic__.encode("UTF-8")).decode("UTF-8");
__file_format_delimiter__ = "\x1F"; # Using a non-printable ASCII character as delimiter
__file_format_ver__ = "001";
__use_new_style__ = True;
__use_advanced_list__ = False;
__use_alt_inode__ = False;
__file_format_extension__ = ".fast";
__file_format_list__ = [__file_format_name__, __file_format_magic__, __file_format_lower__, __file_format_len__, __file_format_hex__, __file_format_delimiter__, __file_format_ver__, __use_new_style__, __use_advanced_list__, __use_alt_inode__];
__file_format_dict__ = {'format_name': __file_format_name__, 'format_magic': __file_format_magic__, 'format_lower': __file_format_lower__, 'format_len': __file_format_len__, 'format_hex': __file_format_hex__, 'format_delimiter': __file_format_delimiter__, 'format_ver': __file_format_ver__, 'new_style': __use_new_style__, 'use_advanced_list': __use_advanced_list__, 'use_alt_inode': __use_alt_inode__};
__project__ = __program_name__;
Expand Down

0 comments on commit 11499c4

Please sign in to comment.