I'm not sure if I get you right.
Do you need a template variable for file templates containing the current post type?
Or do you need a custom post type for files? If so, take a look at WP-Filebase Pro, it generates File Pages as a custom post type.
Regards
Fabian