diff --git a/mv_unique_files.py b/mv_unique_files.py index 88df1b8..5fe4174 100644 --- a/mv_unique_files.py +++ b/mv_unique_files.py @@ -79,12 +79,10 @@ if __name__ == "__main__": 'inode': x.lstat().st_ino, 'NumberOfLinks': x.lstat().st_nlink} df_csv = df_csv.append(new_row, ignore_index=True) - - print(df_csv) if args.order == "inode": - df_csv.sort_values(by="inode") - else: - df_csv.sort_values(by="FileName") + df_csv = df_csv.sort_values(by="inode") + elif args.order == "name": + df_csv = df_csv.sort_values(by="FileName") if args.csv_path: csv_path = args.csv_path