+
+ ##if there is already a dir in yaffs then remove the dir . this is to clean the yaffs folder if it already exists.
+ ##in yaffs all of the files in the dir to be removed must be empty.
+ ##need to create a reverse ls to delete all of the files first.
+# if yaffs_access(absolute_dir_path, 0)==0:##the 0 means does it exist.
+# debug_message ("folder already exists in yaffs", 2)
+# output=yaffs_rmdir(absolute_dir_path)
+# debug_message(("unlinking", absolute_dir_path, output), 2)
+# check_for_yaffs_errors(output)
+
+
+