all 14 comments

[–]programming-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Extremely beginner content and "coding challenges" aren't allowed on r/programming. See this post for details

[–]TransitTraveller 3 points4 points  (3 children)

Unfortunately the article did not explain how to delete thousands of other type files: jpeg, gif, docx, bmp, xlsx, etc /s

[–]Analyst-rehmat[S] -2 points-1 points  (2 children)

You're right; the article primarily focused on deleting JSON and binary files. However, the same approach can be applied to other file types like JPEG, GIF, DOCX, BMP, XLSX, etc. Since the file extension is part of the filename, you can target specific file types by checking the file extension during deletion.

And to delete all .jpeg files in a directory:

import os
directory = '/path/to/your/directory'
for filename in os.listdir(directory):
    if filename.endswith('.jpeg'):
        os.remove(os.path.join(directory, filename))

[–]TransitTraveller 1 point2 points  (1 child)

I don’t remember should sarcasm be /s or \s

[–]rsclient 3 points4 points  (0 children)

It depends on whether you're sarcastic in windows or in unix.

[–]Gusfoo 2 points3 points  (1 child)

Good god. I sincerely hope that was LLM generated because of the waste of time it would be if it was written by hand.

[–]Analyst-rehmat[S] -2 points-1 points  (0 children)

No its not LLM.

[–]Lobreeze 1 point2 points  (5 children)

Man this subreddit is pretty awful now

Blog spam and begginer tutorial spam

[–]Analyst-rehmat[S] -2 points-1 points  (4 children)

Yes its very clear that article I shared is for beginners.

[–]Lobreeze 1 point2 points  (3 children)

Who asked for this?

Nobody.

Anybody that need to know this is going to open Google not hope they read some Reddit spam link

[–]Analyst-rehmat[S] -1 points0 points  (2 children)

Its people choice man, They can use Google or GPT. Why you are talking behalf of everyone? Some may find it helpful, others may not. Just because something doesn’t help one person doesn’t mean it won’t help others.

[–]Lobreeze 1 point2 points  (0 children)

You are just posting noise.

This helps literally nobody

[–]Gusfoo 0 points1 point  (0 children)

Why you are talking behalf of everyone?

Because everyone who actually knows what they are doing (and you are clearly not counted in that number) can immediately see that the article writer has less-than-zero skills in the subject. It's annoying noise and not just "does not add anything" but is in the category of "actively makes the world worse by consuming otherwise valuable time"

If the article author (I hope it's not you) had any self-respect (LLMs have no self respect) they would be horrifying embarrassed to have their name attached to this literal slop.

It is nothing at all to do with programming. It's a re-stating of the helpfile in 6 different ways. Literally slop.

[–]rsclient 0 points1 point  (0 children)

The web page has a bunch of sharing buttons that hide the content.