import os
# print(dir(os))
# print(os.getcwd())
# os.chdir('/home/prosenjit/PycharmProjects/DataHeadOffice/')
# print(os.getcwd())
# os.makedirs('sample/sample-sub')
# os.removedirs('sample/sample-sub')
# os.rename('cart.py', 'pagla.py')
# print(os.listdir())
# print(os.stat('cart.py').st_size)
# print(os.stat('cart.py').st_mtime)
# from datetime import datetime
# mod_time = os.stat('cart.py').st_mtime
# print(datetime.fromtimestamp(mod_time))

# for dirpath, dirnames, filenames in os.walk('/home/prosenjit/PycharmProjects/DataHeadOffice/'):
#     print("Current Path:", dirpath)
#     print("Directories:", dirnames)
#     print("Filenames:", filenames)

# print(os.environ.get('HOME'))
# file_path = os.path.join(os.environ.get('HOME'), 't.txt')
# print(file_path)
#
# with open(file_path, 'w') as f:
#     f.write("prosenjit")
# os.chdir('/home/prosenjit/')
# print(os.getcwd())
# print(os.listdir('/home/prosenjit/'))
# print('\n')
# print(os.listdir('/home/prosenjit/Prosenjit'))

# print(os.path.basename('/tmp/test.txt'))
# print(os.path.dirname('/tmp/test.txt'))
# print(os.path.split('/tmp/test.txt'))
# print(os.path.exists('/tmp/test.txt'))
# print(os.path.isdir('/tmp/test.txt'))
# print(os.path.isfile('/tmp/test.txt'))
# print(os.path.splitext('/tmp/test.txt'))

print(dir(os.path))






















