apt: using File class from stdlib