abs_file_path = os.path.normpath(os.path.join(abs_working_dir, file_path)) if os.path.commonpath([abs_working_dir, abs_file_path]) != abs_working_dir: ...
# at an early stage for feedback and testing and are subject to change.