def get_pretty_location(self, blank_parent_part: bool = False, append_file_ext: bool = True,<EOL>compact_file_ext: bool = False):
if append_file_ext:<EOL><INDENT>if compact_file_ext:<EOL><INDENT>suffix = self.ext if self.is_singlefile else '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>suffix = '<STR_LIT>' + self.get_pretty_file_ext() + '<STR_LIT:)>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>suffix = '<STR_LIT>'<EOL><DEDENT>if blank_parent_part:<EOL><INDENT>idx = self.location.rfind(sep)<EOL>return ('<STR_LIT:U+0020>' * (idx-<NUM_LIT:1>-len(sep))) + '<STR_LIT>' + self.location[(idx+<NUM_LIT:1>):] + suffix<EOL><DEDENT>else:<EOL><INDENT>return self.location + suffix<EOL><DEDENT>
Utility method to return a string representing the location, mode and extension of this file.
:return: