[fpc-pascal] Adding files to a tar file

waldo kitty wkitty42 at windstream.net
Wed Jan 22 02:39:05 CET 2014


On 1/21/2014 7:45 PM, luciano de souza wrote:
> The program compiles, but I got an error. The message says that the
> first file of the directory can't be opened.
>
> What is wrong?

your code uses faAnyfile... perhaps you need to be more restrictive? is your 
problem caused by a sub-directory with the directory of files you are trying to 
archive? or perhaps there's a soft/hard-link?

i also do not see a findclose call after you finish with findfirst/findnext... 
granted, it may not be needed since you are exiting the program but it is more 
proper, IMHO...


-- 
NOTE: No off-list assistance is given without prior approval.
       Please keep mailing list traffic on the list unless
       private contact is specifically requested and granted.



More information about the fpc-pascal mailing list