I am trying to understand what is the motivation behind using Python\'s library functions for executing OS-specific tasks such as creating files/directories, changing file attri
Shell call are OS specific whereas Python os module functions are not, in most of the case. And it avoid spawning a subprocess.