How to hide a file using python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to hide a file using python?

I have to hide some files using python . What are the codes to do so??....so that files still there but a user can't find it!

25th Aug 2020, 3:43 AM
Mohammad Ansah Kuriyodath
Mohammad Ansah Kuriyodath - avatar
3 Answers
+ 6
All hidden files can be shown by a simple right click and selecting 'hidden files', so they're not really hidden. But if you want that, then just add a dot at the beginning of the file name: 'file': not hidden '.file': hidden
25th Aug 2020, 4:00 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Question unclear, what do you mean by 'hide'?
25th Aug 2020, 3:54 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Aymane Boukrouh like as you have seen in windows that a user will be unable to see it but computer can see that. Its presence will be unseen by a user
25th Aug 2020, 3:59 AM
Mohammad Ansah Kuriyodath
Mohammad Ansah Kuriyodath - avatar