Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

RTR3DECL ( int   )  const

Check if the specified file exists in the Tar archive.

(The matching is case sensitive.)

Note:
Currently only regular files are supported.
Returns:
iprt status code.
Return values:
VINF_SUCCESS when the file exists in the Tar archive.
VERR_FILE_NOT_FOUND when the file not exists in the Tar archive.
Parameters:
pszTarFile Tar file to check.
pszFile Filename to check for.
Create a file list from a Tar archive.

Note:
Currently only regular files are supported.
Returns:
iprt status code.
Parameters:
pszTarFile Tar file to list files from.
ppapszFiles On success an array with array with the filenames is returned. The names must be freed with RTStrFree and the array with RTMemFree.
pcFiles On success the number of entries in ppapszFiles.
Extract a set of files from a Tar archive.

Also note that this function is atomic. If an error occurs all previously extracted files will be deleted.

(The matching is case sensitive.)

Note:
Currently only regular files are supported. Also some of the heade fields are not used (uid, gid, uname, gname, mtime).
Returns:
iprt status code.
Parameters:
pszTarFile Tar file to extract files from.
pszOutputDir Where to store the extracted files. Must exist.
papszFiles Which files should be extracted.
cFiles The number of files in papszFiles.
Extract a file by index from a Tar archive.

Note:
Currently only regular files are supported. Also some of the header fields are not used (uid, gid, uname, gname, mtime).
Returns:
iprt status code.
Return values:
VERR_FILE_NOT_FOUND when the index isn't valid.
Parameters:
pszTarFile Tar file to extract the file from.
pszOutputDir Where to store the extracted file. Must exist.
iIndex Which file should be extracted, 0 based.
ppszFileName On success the filename of the extracted file. Must be freed with RTStrFree.
Create a Tar archive out of the given files.

Note:
Currently only regular files are supported.
Returns:
iprt status code.
Parameters:
pszTarFile Where to create the Tar archive.
papszFiles Which files should be included.
cFiles The number of files in papszFiles.


Generated by  Doxygen 1.6.0   Back to index