Lines Matching refs:src_dir
168 def _get_init_status_of_src_dir(self, src_dir):
169 """Get initial status of files in src_dir folder.
171 @param src_dir: directory to be diff-ed.
174 # Dictionary used to store the initial status of files in src_dir.
175 for file_path in self._get_all_files(src_dir):
197 def _copy_new_data_in_file(self, file_path, src_dir, dest_dir):
201 @param src_dir: source directory to do the diff.
202 @param dest_dir: target directory to store new data of src_dir.
220 # Skip src_dir in path, e.g., src_dir/[sub_dir]/file_name.
222 os.path.relpath(file_path, src_dir))
232 def _log_diff(self, src_dir, dest_dir):
233 """Log all of the new data in src_dir to dest_dir.
235 @param src_dir: source directory to do the diff.
236 @param dest_dir: target directory to store new data of src_dir.
240 dir = src_dir.lstrip('/')
248 for src_file in self._get_all_files(src_dir):
249 self._copy_new_data_in_file(src_file, src_dir, dest_dir)