class_docstr: Restrict operations to a single subdirectory - pseudo-chroot
class_docstr_tok: ["Restrict","operations","to","a","single","subdirectory","-","pseudo-chroot"]
docstr: Called for path pairs like rename, link, and symlink operations
code: def _remap_pair(self, operation, src, dst, *args, **kw):
      """Called for path pairs like rename, link, and symlink operations"""
      if not self._ok(src) or not self._ok(dst):
          self._violation(operation, src, dst, *args, **kw)
      return (src, dst)
  
imports: import os
  import sys
  import tempfile
  import operator
  import functools
  import itertools
  import re
  import contextlib
  import pickle
  import textwrap
  import builtins
  import pkg_resources
  from distutils.errors import DistutilsError
  from pkg_resources import working_set
label_desc: Use image node_id 8 for calling the DirectorySandbox obj's underlying member method code with example usage: obj._remap_pair(operation, src, dst) and returns: src,  dst