0

I'm writing this basic code , now i want to give 777 to ctp directory.. what is the best way to do that

import os
import sys

print ("Checking all required directories first...")

def checkDir():
    x='/home/aspx/psharma1'
    if os.path.isdir('x/tmp/ctp'):
        print("Directory /x/tmp/ctp exists..")
    else:
        os.mkdirs("/x/tmp/ctp")
Jean-François Fabre
  • 137,073
  • 23
  • 153
  • 219
pulkit
  • 43
  • 1
  • 7

0 Answers0