What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-05 20:25:01
python file hidden
# os module import os # you can use the current directory you are in fileName = "myFile.txt" # or a different one with a path fileName = "C:/Windows/myFile.txt" # send in cmd os.system("attrib +h " + fileName) # +h for hid... Add solution -
Python 2022-03-02 19:20:13
python how to see if file is directory
""" Use os.path.isfile(some_string) to check if some_string is a file Use os.path.isdir(some_string) to check if some_string is a directory """ import os path = "C:/some directory/" file = path + "file.txt&quo... Add solution
Best helpers
Michaelyus
+5
EBA2018
+5
Eric Lewis
+5
J. Tatum
+5
Erwaman
+5
Jp_
+5
Fauve
+5
Katy Forde
+5
Jcvamp
+5
Chris
+5
Xiaotian Pei
+5