def size_on_copy(root="<STR_LIT:.>"):
total_size = <NUM_LIT:0><EOL>exclusions = exclusion_policy()<EOL>for dirpath, dirnames, filenames in os.walk(root, topdown=True):<EOL><INDENT>current_exclusions = exclusions(dirpath, os.listdir(dirpath))<EOL>dirnames[:] = [d for d in dirnames if d not in current_exclusions]<EOL>legit_files = [f for f in filenames if f not in current_exclusions]<EOL>for f in legit_files:<EOL><INDENT>fp = os.path.join(dirpath, f)<EOL>total_size += os.path.getsize(fp)<EOL><DEDENT><DEDENT>return total_size<EOL>
Return the size of the experiment directory in bytes, excluding any
    files and directories which would be excluded on copy.