Skip to content

Commit

Permalink
Adding Python Script to delete any particular type of file
Browse files Browse the repository at this point in the history
  • Loading branch information
nikant20 committed Aug 22, 2019
0 parents commit 005cab4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RemoveSubtitleScript.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os

for parent, dirnames, filenames in os.walk('F:\\hibernate-jpa-tutorial-for-beginners-in-100-steps'):
for fn in filenames:
if fn.lower().endswith('.srt'):
os.remove(os.path.join(parent, fn))

0 comments on commit 005cab4

Please sign in to comment.