adapt file to class.lepton.filemanager