Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to Create a directory structure with java, in a remote UNC location. java is running in a linux machine and the windows network path is mapped with SAMBA server.

Issue is :

When creating the directories it creates the first directory : OK

Try to create the first sub directory inside the first directory : FAILS

Because it takes some time (nearly 2 seconds) to show up the first directory through samba. This could be due to the slowness of the network (but it's unavoidable )

If i execute the same code step by step (debugging) it works normally and create the directory structure.

Please help me. I need some mechanism which will wait java mkdir() function until the initially created directory get showed up in the UNC path.

share|improve this question
    
stackoverflow.com/questions/5189534/… –  ee. Sep 28 '12 at 4:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.