We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88335a1 commit ee5ba69Copy full SHA for ee5ba69
toplu_dosya_silme.py
@@ -18,12 +18,15 @@
18
if kabul == "y" or kabul == "Y":
19
for i in dosyalar:
20
if i.endswith(dosya_turu):
21
- os.system("rm -r {}".format(i))
+ if os.name == "posix":
22
+ os.system("rm -r {}".format(i))
23
+ elif os.name == "nt":
24
+ os.system("del /f {}".format(i))
25
sayi += 1
26
else:
27
pass
28
print("Toplamda {} {} uzantılı dosya silindi\n".format(sayi, dosya_turu))
29
if sayi == 0:
30
print("Klasörde bu uzantıya sahip herhangi bir dosya bulunamadı.\n")
31
- print("Programdan Çıkıldı!")
32
+ print("Programdan Çıkıldı!")
0 commit comments