#import os module
import os
#set up test workspace with permissions in editor
testfolder = "WORKSPACE"
value = os.getenv(testfolder)
#Change directory to test workspace
os.chdir(value)
print ("Current directory:" , os.getcwd())
#create a new directory
os.mkdir("mydir")
#open a directory with os.open method
fd = os.open("mydir", os.O_RDONLY)
#change the currently running directory
os.fchdir(fd)
#Print the updated directory path
print ("Updated directory:" , os.getcwd())