Convert file manager to object literal