-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathos_module
More file actions
40 lines (32 loc) · 1.06 KB
/
os_module
File metadata and controls
40 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import os
import datetime
#dizin degistirme
#os.chdir('C:\\')
#os.chdir('..\..')
#klasor olusturma
#os.mkdir("newdirectory")
#os.mkdirs("newdirectory","yeniklasor")
#os.rename("newdirectory","yeniklasor")
#os.rmdir("newdirectory")
#os.rmdirs
#etkin dizin ogrenme
#result = os.getcwd()
#listeleme
#result = os.listdir()
#result = os.listdir('C:\\')
#
result = os.stat("hello.py")
#result = datetime.datetime.fromtimestamp(result.st_ctime) olusturulma Tarihi
#result = datetime.datetime.fromtimestamp(result.st_atime) Son erisilme tarihi
#result = datetime.datetime.fromtimestamp(result.st_mtime) degistirilme tarihi
#os.system("notepad.exe")
# path
#result = os.path.abspath("main.py")
#result = os.path.dirname("C:/Users/Doğukan/Desktop/Projects/python/hello.py")
#result = os.path.exists("C:/Users/Doğukan/Desktop/Projects/python/hello.p")
#result = os.path.isdir("C:/Users/Doğukan/Desktop/Projects/python/main.py")
# os.path.isfile
#result = os.path.join("C:\\","deneme","denem1")
#result = os.path.split("C:\\deneme")
#result=os.path.splitext("hello.py")
#print(result)