autograder_sandbox/autograder_sandbox.py
def add_and_rename_file(self, filename: str, new_filename: str) -> None:
        """
        Copies the specified file into the working directory of this
        sandbox and renames it to new_filename.
        """
        dest = os.path.join(
            self.name + ':' + SANDBOX_WORKING_DIR_NAME,
            new_filename)
        subprocess.check_call(['docker', 'cp', filename, dest])
        self._chown_files([new_filename])
def add_and_rename_file(self, filename: str, new_filename: str) -> None:
        dest = os.path.join(
            self.name + ':' + SANDBOX_WORKING_DIR_NAME,
            new_filename)
        subprocess.check_call(['docker', 'cp', filename, dest])
        self._chown_files([new_filename])
def add_and_rename_file ( self , filename : str , new_filename : str ) -> None : dest = os . path . join ( self . name + ':' + SANDBOX_WORKING_DIR_NAME , new_filename ) subprocess . check_call ( [ 'docker' , 'cp' , filename , dest ] ) self . _chown_files ( [ new_filename ] )
Copies the specified file into the working directory of this
        sandbox and renames it to new_filename.
Copies the specified file into the working directory of this sandbox and renames it to new_filename .