Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> fsfilepurge()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSFilePurge()
------------------------------------------------------------------------------
 Purpose:
 Purge erased files from the file server.

 Syntax:
 bResult = FSFilePurge( lpszPath, bAll )

 Parameters:
 lpszPath The directory from which to purge files (NetWare 386 only).
 bAll     The purge all flag.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 FSFilPurge()

 Description:
 FSFilePurge() acts differently under NetWare 2.x and NetWare 3.x and above.

 NetWare 2.x

 FSFilePurge() returns TRUE if the erased files of the workstation are
 successfully purged. Returns FALSE if not, or if an error occurs.
 If bAll is set to TRUE, all erased files on the file server are purged.
 FSFilePurge("",TRUE) returns TRUE if all erased files on the default or
 preferred file server are successfully purged. Parameter lpszPath is
 ignored. Returns FALSE if not, or if an error occurs.

 NetWare 3.x and above

 lpszPath is the full directory path including volume name of the directory
 to be purged, e.g. SYS:DATA\WP. The directory name must be specified.
 FSFilePurge() returns TRUE if all the files in the specified directory have
 been purged successfully, or FALSE if an error has occurred.

 Example:
 // To purge the erased files of the workstation on a NetWare
 // 286 file server:

 if ( FSFilePurge("", FALSE) )
    ? "All erased files have been purged from the workstation"
 endif

 // To purge all erased files from a NetWare 286 file server:

 if ( FSFilePurge( "", TRUE ) )
    ? "All erased files for all workstations purged"
 endif

 // To purge all erased files from directory SYS:KATIE on a NetWare 386
 // file server:

 if ( FSFilePurge( "SYS:KATIE", FALSE ) )
    ? "All erased files in directory SYS:KATIE have been purged"
 endif

 Notes:
 Erased files which have been purged cannot be recovered using the
 NetWare SALVAGE command line utility. FSFilePurge("", TRUE) requires that
 the requesting user is logged in as console operator or is security
 equivalent to console operator.

 If FALSE is returned in either case, check NWErrorGet().

See Also: DirDeletedFileList() FSFileSalvage()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson