Что-то вы гоните насчет "привычного вида формата 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
#BIFI/USDT analysis :
#BIFI is currently experiencing a bearish trend, trading below the 200 Exponential Moving Average (EMA). The price is approaching the resistance zone, coinciding with the 200 EMA, and is anticipated to test this level. It is expected to reverse from this point, resuming the bearish momentum and targeting the swing low level.
TF : 2H
Entry : $192
Target : $161
SL : $208
#BIFI/USDT analysis :
#BIFI is in a downtrend, creating new lower lows and lower highs below the 200 EMA. Currently testing a resistance zone, a rejection is anticipated, which will lead to a decline towards the swing low level.
TF : 4h
Entry : $254
Target : $216.7
SL : $274
#BIFI/USDT analysis :
#BIFI has broken and retested the resistance zone, which was formerly a support level. The next expected move is to test the resistance zone and subsequently resume its bearish momentum to revisit previous lows.
TF : 1h
Entry : $281.6
Target : $262.9
SL : $293.3
#BIFI/USDT analysis :
#BIFI has breached previous support zone and is currently trading below it. The price is anticipated to persist in its bearish structure and test prior lows.
TF : 2h
Entry : $307.4
Target : $282.6
SL : $324
Our algorithm detected ascending triangle at #BIFI (4h) chart 👀
Normally, an upside breakout is expected in this triangle type, but indicators give us mixed signals 🤔
Therefore, it would be logical to wait for a directional breakout and then open a position.
Targets are on the chart.
#ZIL LONG
▪Вход ZIL : 0.0225$
▪Тейк: буду обновлять.
#BIFI LONG
▪Вход BIFI : 380$
▪Тейк: буду обновлять.
пс: учитываем, что это альткоины... торгуем соблюдая риски.
LINK - Maximus Trade|TWITTER