Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetFilesCount – PB Docs 2021 – PowerBuilder Library

GetFilesCount – PB Docs 2021

GetFilesCount

PowerScript function

Description

Gets the number of files contained in the archive.

Applies to

ExtractorObject objects

Syntax

Argument

Description

objectname

The name of the ExtractorObject object.

source

The full path of the compressed package.

Packages compressed by the LINUX commands are
unsupported.

Return value

Long. If any argument’s value is null, the method returns
null.

Note: the folder will also be calculated as a file. For example, if
a folder contains 3 files, the total number of files is 4 when
decompressing.

The return values are:

  • >= 0 — the number of files in the compressed package.

  • -1 — A general error occurred.

  • -3 — The operation is not supported for the source file
    format.

  • -5 — A task thread is currently running.

  • -6 — You must enter a password.

  • -7 — The password is incorrect.

  • -9 — Failed to read the compressed file.

  • -10 — Unrecognized format or the encrypted file name option is
    used for the compressed document.

  • -12 — The compressed file does not exist.

Examples

See also

Cancel

Extract

GetFilesList


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x