If you do that, the piece may not fit the dovetail, because a regular triangular file will not cut the corners sharp enough to get the dovetailed piece in. An Extra Slim triangular file works the best, with one flat/side ground off.
This gives you a safe side & also get the edge very sharp to match the sight, underlug, or dovetail piece you are trying to install.
If you use a regular file the inside corners will be rounded & then you make it to where your piece will go in, then the dovetail is too loose.
Fastenall has the files, some NAPA's, some Lowes, some Home Depots, and some places that sell tooling.
Get the Depth correct first, scribe across & then take the width of the dovetail at the top to that depth, then cut the angle part with the safe side down, work it alternating the safe side to the angle cut & back to keep the area level.
Keith Lisle