How to work with Folder/Directory And How to implement the functions like getcwd,remove

Here I do the same as mam guides us, but this occurs.
Screenshot (174)|690x388
Screenshot (173)|690x388