[jcifs] How to create a directory ?
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Tue Jul 8 08:38:39 EST 2003
(new SmbFile("smb://server/share/")).mkdir() // not possible
(new SmbFile("smb://server/")).mkdir() // not possible
(new SmbFile("smb://workgroup/")).mkdir() // not possible
(new SmbFile("smb://server/share/directory/")).mkdir() // ok if you have permission
What's the error?
> -----Original Message-----
> From: LE SQUER Rodolphe [SMTP:RLESQUER at aston.fr]
> Sent: Monday, July 07, 2003 1:05 PM
> To: 'jcifs at lists.samba.org'
> Subject: [jcifs] How to create a directory ?
>
> Hello,
>
> I am not able to create a directory with the mkdir() or mkdirs() method of
> the SmbFile class. The javadoc says that you cannot create a directory when
> used with smb://, smb://workgroup, smb://server, or smb://server/share URLs.
> My question may be stupid (sorry), but how can I create a SMB URL without a
> workgroup, server or share in it ?
>
More information about the jcifs
mailing list