jfjallid / go-smb

A client library to interact with Windows RPC services such as MS-SRVS and MS-RRP.
MIT License
40 stars 9 forks source link

Help please #10

Closed arxon31 closed 6 months ago

arxon31 commented 6 months ago

Question about smb package

How can I create new directory or make something like os.MkdirAll with your library?

Thanks!

jfjallid commented 6 months ago

It's not possible yet to create directories with the functionality exposed by this library. However, since it's just a customized SMB2 Create Request it should be fairly easy to implement.

jfjallid commented 6 months ago

I have now added the functionality Mkdir and MkdirAll in commit 5efd41de0253ac38d97641e21acc638cf5c1ae74 (Tag v0.3.5). After establishing a connection (conn), you can create a directory with conn.MkdirAll("share", "dir1/dir2/dir3").