jborean93 / smbprotocol

Python SMBv2 and v3 Client
MIT License
309 stars 72 forks source link

mkdir -p recursive directory create #270

Closed habhabhabs closed 5 months ago

habhabhabs commented 5 months ago

@jborean93 and the maintainers, thanks for making this project alive. It is very helpful working with SMB shares on Python3.

I'm working on a AWS Lambda automation and would benefit from having mkdir -p when creating new directories.

From my observation, mkdir only creates on the first level. If I want to create child of child folders I have a challenge.

Would the development of this feature be part of the feature pipeline? Thanks

adiroiban commented 5 months ago

Hi Alex.

I think that mkdir is designed to work the same way as os.mkdir

I think that you are looking after smbclient.makedirs which is the equivalent of os.makedirs

habhabhabs commented 5 months ago

@adiroiban thanks mate, you're a gem! It works.

Proceed to close.