Corrected ifelse condition

master
Jason Zhu 2021-08-15 11:25:14 +10:00
parent 1febef406d
commit 76cacaeb14
1 changed files with 3 additions and 5 deletions

View File

@ -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