Using JavaScript in HomeSite 4.0, Part III: The ZIPProvider Object's Methods, Part III | WebReference

Using JavaScript in HomeSite 4.0, Part III: The ZIPProvider Object's Methods, Part III


Using JavaScript in HomeSite 4.0, Part III

The ZIPProvider Object's Methods, Part III

Delete(files)Integer

Deletes files from an archive. You can specify a single file, a set of files delimited by line breaks or an entire directory using wildcards. If left an empty string all files will be deleted. The function returns a status code which can be investigated to determine whether the operation succeeded. Click here to see the table of status codes.

FileName(index)String

Returns the name of a file in an archive by index. The index value can be from 0 to FileCount-1. This method does not seem to be working -- it returns an empty string.

FileSize(index)Double

Returns the size of an existing archive file element (file/directory/volume) by index. The index value can be from 0 to FileCount-1. This method does not seem to be working -- it always returns 0.

FileDate(index)String

Returns the date of an existing archive file element (file/directory/volume) by index. The index value can be from 0 to FileCount-1.

FileIsDirectory(index)Boolean

Returns a true value when a specific element (file/directory/volume) in an archive is a directory. The index value can be from 0 to FileCount-1.

FileIsReadOnly(index)Boolean

Returns a true value when a specific element (file/directory/volume) in an archive is read-only. The index value can be from 0 to FileCount-1.

FileIsHidden(index)Boolean

Returns a true value when a specific element (file/directory/volume) in an archive is a hidden element. The index value can be from 0 to FileCount-1.

FileIsSystem(index)Boolean

Returns a true value when a specific element (file/directory/volume) in an archive is a system element. The index value can be from 0 to FileCount-1.

FileIsVolume(index)Boolean

Returns a true value when a specific element (file/directory/volume) in an archive is a volume. The index value can be from 0 to FileCount-1.

https://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: October 11, 1999
Revised: October 15, 1999

URL: https://www.webreference.com/js/column50/zipmeth3.html