Corrected ifelse condition
parent
1febef406d
commit
76cacaeb14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue