Green’s Dictionary of Slang

file n.

[ety. unknown; despite chronology OED suggests abbr. foil-cloy n., thence file-cloy under file v.1 . Weekley, Etymological Dict. of Modern English (1921), offers link to Fr. filou, a pickpocket; DSUE suggests SE file, a metal tool used to cut through things, and file, a rascal; 18C Fr. argot also has filer doux, to flatter, wheedle, ‘play the sleeping dog’, i.e. lie in wait]
(UK Und.)

1. [mid-17C–19C] a pickpocket.

2. [mid-18C] a shoplifter.

3. [early–mid-19C] (also old file upon the town) an experienced fraudster or confidence trickster.

4. [early 19C–1900s] an artful, cunning or shrewd person, a man, a ‘fellow’; thus old file, an old and/or experienced person.

5. [mid-19C] a pickpocket’s assistant.

In compounds

file-lifter (n.)

[late 17C–18C] a pickpocket.

In phrases