You will need drop outs which will take the hub gear axle.
Most derailer ones won't.
Filing is a bodge and may, or may not, work.
If the drop out needs fully remaking, it's a welding job.
Chain tension is something else to consider.
The existing drop outs certainly won't be sliding ones, so...