Function __global->tar_add_file
Definitions
sources/tar.php
- Add a file to the specified TAR file.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: int
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$resource | array | required parameter | N/A | N/A | The TAR file handle |
$target_path | PATH | required parameter | N/A | N/A | The relative path to where we wish to add the file to the archive (including filename) |
$data | string | required parameter | N/A | N/A | The data of the file to add |
$_mode | integer | 420 | N/A | N/A | The file mode (permissions) |
$_mtime | ?TIME | Null | N/A | N/A | The modification time we wish for our file (null: now) |
$data_is_path | boolean | False | N/A | N/A | Whether the $data variable is actually a full file path |
$return_on_errors | boolean | False | N/A | N/A | Whether to return on errors |
$efficient_mode | boolean | False | N/A | N/A | Don't do duplicate checks |
Return
- Offset of the file in the TAR
- Type: integer
- Set: N/A
- Range: N/A