flushing the file object now gives the full path