I created a Samba (v4.x) share drive on a Linux box that's accessible to Windows nodes. I was able to access the Samba share (via username/pw creds) on my Windows box, and I mapped a Windows driver letter for it, say Z:\

Now I have a Windows application that tries to create a multi-level directory structure, e.g., Z:\level1\level2\level3 and of course since the Z:\level1 top directory does not exist yet it fails. At least I think this is the reason. It's like doing a mkdir /samba_dir/level1/level2/level3, but really needs a mkdir -p /samba_dir/level1/level2/level3. Is there a way to workaround this? It's almost like I want mkdir to act like mkdir -p.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.