import os
impoer uuid
wallet_filepath = os.path.join('PWD', str(uuid.uuid4().hex) , '.bin')
print (wallet_filepath)
print (os.path.exists(wallet_filepath))
print (os.stat(wallet_filepath))
의 디렉토리로 UUID를 사용하여 디렉토리 만들기.이 내가이 코드에서 점점 오전 <strong>OUTPUT</strong>입니다 파이썬 3
/home/user/randomTests/b1c51a61c235479aa0964e14db7135d6/.bin
False
Traceback (most recent call last): File "testDir.py", line 9, in print (os.stat(wallet_filepath)) FileNotFoundError: [Errno 2] No such file or directory: '/home/user/randomTests/b1c51a61c235479aa0964e14db7135d6/.bin'