I've been having the same problem.
I'm writing some c++ code which creates a subdirectory and then renames files from the parent into the newly created directory.
I'm using mkdir() to create the directory, then, immediatley after, using the rename() function:
mkdir("newdir");
rename(...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.