[jcifs] Recursive Deletes
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Fri Aug 23 13:45:38 EST 2002
Nope. If you ask me the whole protocol is a scam to waste bandwidth. It's not
good for business if your servers are efficient.
You can get a free count of the disk with freeDiskSpace (err, maybe I should
have called that getFreeDiskSpace). But not of a particular sub directory.
> -----Original Message-----
> From: andy chernow [SMTP:achernow at yahoo.com]
> Sent: Thursday, August 22, 2002 11:31 PM
> To: jcifs at lists.samba.org
> Subject: [jcifs] Recursive Deletes
>
> Is is possible to send the SMB Server one packet to
> delete a whole directory. Currently, SmbFile.delete()
> does a listFiles() and individually deletes each file
> withn the directory. This can become quite a long
> process if there are over 5000 files contained within
> the given directory and it's sub-directories. I guess
> I am wondering if there is a way to do this in one
> operation on the server side.
>
> It would also be nice if there was a way to stat a
> directory on the server-side. By stat I mean, the
> directories fileCount, DirectoryCount and total size
> in bytes...all file sizes added up. I currently have
> to go through all sub-directories searching for files
> and add up file.length() and increment a
> fileCount/dirCount variable. This also becomes time
> consuming due to the amount of requests invovled.
>
> /sLaKr
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
More information about the jcifs
mailing list