Что-то вы гоните насчет "привычного вида формата 755 и 644". Я вот вообще не понял что это!😳
Действительно, что означают цифры которые мы получили в прошлом посте?
Это кодировка, заключающая в себе режимы доступа к файлу.
Подробней можно почитать в статье про chmod.
Там можно увидеть альтернативное обозначение того же самого с помощью символов r w x, что значит чтение, запись, исполнение.
Чтобы преобразовать восьмеричное число в такое обозначение в Python есть готовая функция
>>> stat.filemode(0o755)
'?rwxr-xr-x'
Мы видим 3 группы по 3 символа, дающие 3 типа доступа для 3 типов юзеров.
А что за знак вопроса в начале?
Давайте передадим в эту функцию необрезанное значение от os.stat
>>> stat.filemode(os.stat(path).st_mode)
'drwxr-xr-x'
Это данные, которые мы безжалостно обрезали в прошлый раз😼
Первый символ обозначает тип объекта. Это может быть файл (-), директория (d) или симлинк (l).
Вот простая схема данной кодировки
[1][3][3][3]
│ │ │ │
│ │ │ └──> Others Permissions
│ │ └─────> Group Permissions
│ └────────> Owner Permissions
└───────────> File Type
(разверните экран если вы с телефона)
Если вы попробуете получить пермишены для симлинка то получите пермишены для файла
>>> path = '.venv/bin/python3'
>>> stat.filemode(os.stat(path).st_mode)
'-rwxr-xr-x'
Чтобы получить свойства именно симлинка, нужно это явно указать
>>> stat.filemode(os.stat(path, follow_symlinks=False).st_mode)
'lrwxrwxrwx'
#tricks#basic
#POWR/USDT analysis :
#POWR has successfully broken above the trendline and is anticipated to continue its upward movement, with the potential to test previous highs. This breakout signals a bullish trend, suggesting further price appreciation in the near term.
TF : 1D
Entry : $0.3090
Target : $0.4500
SL : $0.2270
#POWR/USDT analysis :
#POWR is currently in an uptrend, trading above the 200 EMA. The price has bounced back from the support zone with strong volume. As a result, we can expect the price to maintain its bullish momentum and test higher levels.
TF : 2H
Entry : $0.3500
Target : $0.4200
SL : $0.3022
#POWR/USDT analysis :
#POWR is in a correction phase and has recently tested the resistance zone near the 200 EMA. The price is anticipated to be rejected from there and continue its downward direction. Wait for the break of the $0.1936 level for entry.
TF : 4H
Entry : $0.1936
Target : $0.1751
SL : $0.2058
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 320-335
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑360-380
🤑380-410
🤑 410-440
🤑 440-470
🚀 470- 500 & above
Bullish above -300
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 485-495
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑520-550
🤑 550-600
🤑 600-650
🤑 650-700
🚀 700- 750 & above
Bullish above -470
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 525-540
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑 570-600
🤑 600-650
🤑 650-700
🚀 700- 750 & above
Bullish above -510
#POWR👈
https://www.binance.com/en/trade/POWR_BTC
Buy at current 605-610
Highly pumpable Coin on the brink of 🚀
Buy in parts 👈strictly follow for max profits as its pump coin
Sell
🤑 640-670
🤑 670-730
🤑 730-790
🚀 790- 850 & above
Stop Loss/Exit -590