Go to the source code of this file.
|
int __stdcall | get_extraction_progress_information_ar (char *warning_ar, char *filename_ar, char *folder_feline) |
|
void | extract_archive (void) |
|
bool | contains_dot_dot (char const *name) |
|
void | trocadordebackslashtras (char *path) |
|
int | rspmakedir (char *path) |
|
int | ispathfolder (char *path) |
|
int | ispathreadonly (char *path) |
|
int | createtestfilename (char *path1) |
|
char * | strrstr (char *s1, char *s2) |
|
int | ispathfile (char *path) |
|
int | rspmakedir_v2 (char *path) |
|
int | stripfilenameandpath_unix_arp (char *path, char *onlypath, char *onlyfilename) |
|
int | stripfilenameandpath (char *path, char *onlypath, char *onlyfilename) |
|
int __stdcall | stripfilenameandpath_amanda_s_smart_ape (char *path, char *onlypath, char *onlyfilename) |
|
char * | strrstr_ends_with (char *str, char *substr) |
|
bool __amandacall | is_compressed_z (char *filename_in_z) |
|
void __amandacall | adjust_extension_z (char *filename_in_z, char *filename_out_z) |
|
void __stdcall | replace_extension_arp (char *whole_path_arp, char *new_extension_arp, char *out_data_arp) |
|
int | createtempfilename_and_keep_z (char *path1, char *out_z, WCHAR *signature_z) |
|
bool | is_encrypted_gnu_tar_arp (char *file_arp_utf_8) |
|
int __fastcall | ricardo_convert_m (int a_m, int b_m, SYSTEMTIME *smtime) |
|
void | TimetToFileTime (time_t t, LPFILETIME pft) |
|
◆ ARCHIVE_LITERAL_LL
#define ARCHIVE_LITERAL_LL |
( |
| x | ) |
|
◆ ARCHIVE_LITERAL_ULL
#define ARCHIVE_LITERAL_ULL |
( |
| x | ) |
|
◆ e_free
◆ e_malloc
◆ EPOC_TIME
◆ IS_ABSOLUTE_PATH
#define IS_ABSOLUTE_PATH |
( |
| P | ) |
|
Value:
#define ISSLASH(C)
Definition sparse_2_k.c:110
#define P(a, b, c, d, k, s, t)
◆ IS_PATH_WITH_DIR
#define IS_PATH_WITH_DIR |
( |
| P | ) |
|
Value:
#define NULL
Definition getopt1.c:37
◆ WINTIME
#define WINTIME |
( |
| sec, |
|
|
| nsec ) |
Value: ((Int32x32To64(sec, 10000000) +
EPOC_TIME) + \
(((nsec) / 1000) * 10))
◆ tar_extractor_t
typedef int(* tar_extractor_t) (char *file_name, int typeflag) |
◆ adjust_extension_z()
void __amandacall adjust_extension_z |
( |
char * | filename_in_z, |
|
|
char * | filename_out_z ) |
It will just add to the filename_out_z the extension of the filename_in_z, because some compression formats like lzma and brotli needs always the correct extension to extrac or list process
- Parameters
-
filename_in_z | the input filename |
filename_out_z | the output file that will have the extension adjusted |
- Returns
- void
◆ contains_dot_dot()
Tar related function, version 1.34 Return nonzero if NAME contains ".." as a file name component.
◆ createtempfilename_and_keep_z()
int createtempfilename_and_keep_z |
( |
char * | path1, |
|
|
char * | out_z, |
|
|
WCHAR * | signature_z ) |
It will just create a windows based temp file using the signature_z information
- Parameters
-
path1 | the path where it will create |
out_z | the utf-8 encoded temp file |
signature_z | the 3 characters to be used as the initial data on the destination temp file |
- Returns
- 0 on error, 1 otherwise
◆ createtestfilename()
int createtestfilename |
( |
char * | path1 | ) |
|
It will create a test filename on the given path and delete it just to see if it is writable
- Parameters
-
path1 | the folder where the file need to be created |
- Returns
- 0 on error, 1 otherwise
◆ extract_archive()
void extract_archive |
( |
void | | ) |
|
Tar related function, version 1.34 Extract a file from the archive.
◆ get_extraction_progress_information_ar()
int __stdcall get_extraction_progress_information_ar |
( |
char * | warning_ar, |
|
|
char * | filename_ar, |
|
|
char * | folder_feline ) |
It will retrieve the extraction information for each call, see the sample project to see how to use it correctly
- Parameters
-
warning_ar | the warning information if any |
filename_ar | the filename that was just extracted |
folder_feline | if it was a folder |
- Returns
- always 0
◆ is_compressed_z()
It will read the extension to detect whether the file is a valid compressed file, wide path capable my ric...
- Parameters
-
filename_in_z | the filename |
- Returns
- 0 if not compressed, 1 otherwise
◆ is_encrypted_gnu_tar_arp()
bool is_encrypted_gnu_tar_arp |
( |
char * | file_arp_utf_8 | ) |
|
Wide path capable, only for Tar files, it will check to see if in the file the information stored during the encryption is available, and if yes what is the encryption used, notice that for the moment the only software capable of using these encryption methods is the Parolin project, loading these encrypted files with tar.exe or Winrar or 7zip will only report an invalid Tar file
- Parameters
-
file_arp_utf_8 | the file to test, utf-8 based |
- Returns
- false if not encrypted, true otherwise
◆ ispathfile()
int ispathfile |
( |
char * | path | ) |
|
It will test the utf-8 encoded path to see if it do exist and is a file
- Parameters
-
path | utf-8 encoded path to test |
- Returns
- 0 if the path is not a file or valid, 1 if it is a readable file
◆ ispathfolder()
int ispathfolder |
( |
char * | path | ) |
|
To know whether the path is valid and a folder
- Parameters
-
- Returns
- 0, if invalid or not a folder, 1 if it is a folder
◆ ispathreadonly()
int ispathreadonly |
( |
char * | path | ) |
|
To know whether the path is read-only
- Parameters
-
- Returns
- 1 if the path is read-only, -1 on error and 0 otherwise (if not read-only)
◆ replace_extension_arp()
void __stdcall replace_extension_arp |
( |
char * | whole_path_arp, |
|
|
char * | new_extension_arp, |
|
|
char * | out_data_arp ) |
It will replace the extension with a new one provided
- Parameters
-
whole_path_arp | the input path |
new_extension_arp | the new extension |
out_data_arp | the output file |
◆ ricardo_convert_m()
int __fastcall ricardo_convert_m |
( |
int | a_m, |
|
|
int | b_m, |
|
|
SYSTEMTIME * | smtime ) |
◆ rspmakedir()
int rspmakedir |
( |
char * | path | ) |
|
Function to recursively create a path, it will try to create each subfolder since the first one and not only the last subfolder
- Parameters
-
path | the path to create, cannot be relative (remember it) |
- Returns
- 0 if ok, an error otherwise
◆ rspmakedir_v2()
int rspmakedir_v2 |
( |
char * | path | ) |
|
Function to create the whole path, it will try to create each subfolder until the end recursively
- Parameters
-
path | the path to create, cannot be relative (remember it) |
- Returns
- 0 if ok, an error otherwise
◆ stripfilenameandpath()
int stripfilenameandpath |
( |
char * | path, |
|
|
char * | onlypath, |
|
|
char * | onlyfilename ) |
It will split the path in folder and file (Windows based), UNC capable too
- Parameters
-
path | the input path |
onlypath | only the path, can be NULL if not required |
onlyfilename | only the filename, can be NULL if not required |
- Returns
- always 0
◆ stripfilenameandpath_amanda_s_smart_ape()
int __stdcall stripfilenameandpath_amanda_s_smart_ape |
( |
char * | path, |
|
|
char * | onlypath, |
|
|
char * | onlyfilename ) |
◆ stripfilenameandpath_unix_arp()
int stripfilenameandpath_unix_arp |
( |
char * | path, |
|
|
char * | onlypath, |
|
|
char * | onlyfilename ) |
It will split the path in folder and file (Unix based)
- Parameters
-
path | the input path |
onlypath | only the path, can be NULL if not required |
onlyfilename | only the filename, can be NULL if not required |
- Returns
- always 0
◆ strrstr()
char * strrstr |
( |
char * | s1, |
|
|
char * | s2 ) |
It will return the last occurrence of a string inside the string
- Parameters
-
s1 | the string to search |
s2 | the input string |
- Returns
- a pointer if the string was found or NULL otherwise
◆ strrstr_ends_with()
char * strrstr_ends_with |
( |
char * | str, |
|
|
char * | substr ) |
◆ TimetToFileTime()
void TimetToFileTime |
( |
time_t | t, |
|
|
LPFILETIME | pft ) |
It will convert a time_t unix time to FILETIME
◆ trocadordebackslashtras()
void trocadordebackslashtras |
( |
char * | path | ) |
|
It will replace character '/' with '\' on the given path, very useful to programmers converting code from Unix to Windows... not using cygwin
- Parameters
-
path | the path to replace the character |
- Returns
- void
◆ absolute_names_option
◆ encryption_detected_z
int encryption_detected_z = -1 |