Lines Matching full:src_dir
122 def _get_init_status_of_src_dir(self, src_dir): argument
123 """Get initial status of files in src_dir folder.
125 @param src_dir: directory to be diff-ed.
128 # Dictionary used to store the initial status of files in src_dir.
129 for file_path in self._get_all_files(src_dir):
151 def _copy_new_data_in_file(self, file_path, src_dir, dest_dir): argument
155 @param src_dir: source directory to do the diff.
156 @param dest_dir: target directory to store new data of src_dir.
174 # Skip src_dir in path, e.g., src_dir/[sub_dir]/file_name.
176 os.path.relpath(file_path, src_dir))
186 def _log_diff(self, src_dir, dest_dir): argument
187 """Log all of the new data in src_dir to dest_dir.
189 @param src_dir: source directory to do the diff.
190 @param dest_dir: target directory to store new data of src_dir.
194 dir = src_dir.lstrip('/')
202 for src_file in self._get_all_files(src_dir):
203 self._copy_new_data_in_file(src_file, src_dir, dest_dir)