Похожие чаты

Hi I have a question about stat modes. How come stat

mode of the logfile.txt is the same as the file0.py ? Because I can do os.unlink("file0.py"), but when I do os.unlink("logfile.txt") it raises error. So I think permission modes shouldn't be the same or I have some misunderstanding?

21 ответов

50 просмотров
Sahand-🏔️ Автор вопроса

Does anyone know the reason why

Sahand-🏔️ Автор вопроса
Fayaz Khan
Why would I do that?

no, that was not mean, i just wanan say how to rectify

ѕαurαвh αgrαhαrí
no, that was not mean, i just wanan say how to rec...

I don't think I can help you without enough context. I needed to know what else the output said besides the error you quoted.

Fayaz Khan
I don't think I can help you without enough contex...

i have made the project, who take the news_link and scape it . and display important info

Sahand-🏔️ Автор вопроса
Fayaz Khan
Does the file still exist?

The logfile already exists and according to my previous shots, os.unlink cannot remove the file

Sahand 🏔️
screenshot The logfile already exists and according to my pre...

Can you do it through a command shell instead of Python? I'm curious.

Sahand-🏔️ Автор вопроса
Sahand 🏔️
screenshot

What platform are you on?

Sahand-🏔️ Автор вопроса
Fayaz Khan
What platform are you on?

It's linux. And it's the Sololearn python editor not my system

Sahand-🏔️ Автор вопроса
Fayaz Khan
So it's some type of sandbox?

What's that , am not much familiar with unix, linux etc

Sahand-🏔️ Автор вопроса
Sahand 🏔️
What's that , am not much familiar with unix, linu...

It's sounds like you're running this on a learning platform, which has given you a sandbox container just to try out stuff. That would mean it's probably just emulating the system calls.

Sahand-🏔️ Автор вопроса
Fayaz Khan
It's sounds like you're running this on a learning...

But strangely i can do os.unlink() on ther files. For example there is a runner.sh file too, but i can remove it

Похожие вопросы

Обсуждают сегодня

а через ESC-код ?
Alexey Kulakov
29
30500 за редактор? )
Владимир
47
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
13
any reference of this implementation?
BitBuddha
29
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
9
Карта сайта