-# output=yaffs_unlink(path)
-# print"unlinking", output
-# check_for_yaffs_errors(output)
- current_handle=yaffs_open(file_path, yaffs_O_CREAT | yaffs_O_TRUNC| yaffs_O_RDWR, yaffs_S_IWRITE) ##opens a file with mode set to write
+# yaffs_ls(file["path"])
+ output=yaffs_unlink(path)
+ print"unlinking", output
+ check_for_yaffs_errors(output)
+ current_handle=yaffs_open(file_path, yaffs_O_CREAT | yaffs_O_TRUNC| yaffs_O_RDWR, yaffs_S_IREAD | yaffs_S_IWRITE) ##opens a file with mode set to write