os rmdir("shanthi"output:shanthi directory on the desktop will be removed os path module in python this module contains some useful functions on pathnames os path basename(paththis function basically return the file name from the path given import os os path basename("shanthi/file "print(loutputfile os path dirname(pathit is used to return the directory name from the path given import os os path dirname("shanthi/file "print(loutput:shanthi os path isdir(paththis function specifies whether the path is existing directory or not import os os path isdir("shanthi/file "print(loutput:true os path isfile(paththis function specifies whether the path is existing file or not import os os path isfile("shanthi/file "print(loutput:true bv prasanthi,dept of cse page