Implementing creating files and directories through fs
Fix bugs in delete logic