Skip to content

Commit f12d8e0

Browse files
committed
refactor: Update file selection prompts and improve output formatting in file_manager function
1 parent 429c365 commit f12d8e0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

bugscanx/utils/file_selector.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@ def file_manager(start_dir):
2323
short_dir = "\\".join(current_dir.parts[-3:])
2424

2525
print(f"[cyan] Current Dir: {short_dir}[/cyan]")
26-
lines_printed += 1
26+
print()
27+
lines_printed += 2
2728

2829
for idx, item in enumerate(directories + files, 1):
2930
color = "yellow" if item.is_dir() else "white"
3031
print(f" {idx}. [{color}]{item.name}[/{color}]")
3132
lines_printed += 1
3233

33-
print("\n[blue] 0. Previous folder[/blue]")
34+
print("[blue] 0. cd ..[/blue]")
35+
print()
3436
lines_printed += 2
3537

36-
selection = get_input("Select number or filename")
38+
selection = get_input("Enter number or filename")
3739
lines_printed += 1
3840

3941
previous_lines = lines_printed

0 commit comments

Comments
 (0)