Give a path like /home/foo/.mozilla/cache/data.txt return the filename (data.txt) return the full-path directory name ( /home/foo/.mozilla/cache )
Follow me: