Что-то вы гоните насчет "привычного вида формата 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
#LEVER/USDT analysis :
#LEVER is in a downtrend, trading below the 200 EMA. The price is testing the resistance zone and is anticipated to decline from there and test lower levels.
TF : 1H
Entry : $0.000895
Target : $0.000814
SL : $0.000950
#LEVER/USDT analysis :
#LEVER is currently testing the previously respected resistance zone. A rejection is anticipated from this level, and it is expected that the price will subsequently test the previous swing low.
TF : 2h
Entry : $0.001405
Target : $0.001282
SL : $0.001487
#LEVER/USDT analysis :
#LEVER is currently in a correction phase within an overall uptrend, retracing back to the 200 EMA support zone. The price is expected to test this zone and bounce back, which would allow it to continue its bullish momentum and potentially test previous highs.
TF : 2H
Entry : $0.002570
Target : $0.002910
SL : $0.002384
#LEVER/USDT analysis :
#LEVER is currently rejecting from the resistance zone. A decline in price is expected to be seen soon until the previous lows are tested.
TF : 4H
Entry : $0.00214
Target : $0.00180 and $0.00166
SL : $0.00238
#LEVER/USDT analysis :
#Lever has broken out and retested the previous resistance zone. It is now ready to move upside and test the previous swing high.
TF : 15min
Entry : $0.00171
Target : $0.00176
SL : $0.00167
#LEVER/USDT analysis -
#LEVER has broken down below the support level with strong bearish momentum. Wait for the price to retest the broken zone for a short entry. The previous low will be tested.
TF : 4h
Entry : $0.00245
Target : $0.00199
SL : $0.00264
#LEVER/USDT analysis -
#LEVER is currently trading in a downtrend on the higher time frame. The price is currently going through a sideways correction phase. Price is currently trading near the 200 EMA and is expected to reject from there to decline further. The previous low is expected to be tested.
TF : 30min
Entry : $0.00218
Target : $0.00199
SL : $0.00229
#LEVER/USDT analysis -
#LEVER is currently in a downtrend, establishing new lows while trading below the 200EMA. The price is currently rejecting from the 200EMA and resistance zone after a corrective pullback. Price is likely to continue its downward momentum. Further declines are expected to test new lows.
TF : 30min
Entry : $0.00250
Target : $0.00214
SL : $0.00277
🔫Double Kill: #LEVER & #PYTH
Yesterday bot dropped two longs.
Today both detonated with +1000% profit (10x lev)in just one day.
• LEVER → +1284%
• PYTH → +1086%
___
📊Full stats for both strategies are on the screenshot ^^
🔍