Jump to content

python folder creating

krishna avril

Recommended Posts

corrected this way

is there any other way instead of two different loops?

import os

shot = "vnc"
maya = "m_v"
houdini = "h_v"
nuke = "n_v001"
tracking = "t_v"
root = "I:\\"
for each in range(10):
    path = f"{root}/{shot}_00{each}"
    if not os.path.exists(path):
for each in range(10,15):
    path = f"{root}/{shot}_0{each}"
    if not os.path.exists(path):
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...