(ovviamente fi.name dovrebbe coincidere con il path, ma e' soltanto un esempio)