Filesystem tweak

updated some filesystem code to make it more inline with how android and ios work.