Skip to main content
gamedev.net
🔒 Locked

mkdir() problem!

Started by amemorex 0 replies 250+ views
Original Post
amemorex
amemorex
im trying to use the mkdir function but i''ve hit a wall..it cant seem to create more than 1 folder at a time.. for instance, if i were to code: mkdir("c:/windows/desktop/folder1/"); that would work, but if i code mkdir("c:/windows/desktop/folder1/subfolder1/"); and the folder1 doesn''t exist, the function doesn''t work.. so how do i make mkdir automatically create every folder in the string?
Qoy
Qoy
A for loop and strcat().

I don''t think there''s a way to do that with one call... In my experience most directory creation things can only create one subdir, not an entire tree, in one call.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.