18 lines
310 B
Python
18 lines
310 B
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
|
|
def main():
|
|
cwd = os.getcwd()
|
|
files = os.listdir(cwd)
|
|
|
|
print(f"Folder curent: {cwd}\n")
|
|
print("Fișiere găsite:")
|
|
for name in files:
|
|
print(f" - {name}")
|
|
|
|
print(f"\nTotal fișiere/foldere: {len(files)}")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|