Похожие чаты

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 ответов

17 просмотров
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

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

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

а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
using next image component with s3 image: "url" parameter is valid but upstream response is invalid code: <Image fill src={s...
Fasil
3
Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
Friends, how can I find my Wazirx wallet address?
Silm Silm
31
Всем привет! Подскажите. Я написал приложение на Delphi 10.2 Tokyo под Windows 10. И передо мной стал вопрос о том чтобы сделать это приложение кроссплатформенным (под Linux и...
Дмитрий Завгородний
24
Какого хера? /Sources/App/Modules/User/Models/UserLinkApple.swift:21:20: warning: stored property '_id' of 'Sendable'-conforming class 'UserLinkApple' is mutable @ID(...
Alexander Sherbakov
14
My 7 year old daughter recognizes the Bitcoin symbol and knows it's currency. What are the top ,3-5 most basic important concepts to convey to a kid about BCH? I started with ...
Big Hair
24
How the price of ANVL is decided? The buying pressure comes just from staking which is very slow, while the selling pressure might be huge. What are the benefits for those who...
MJ Javvaji @muralijavvaji
13
How many Cashfusion server now?
Crypto life
22
Кто знает локации, где можно машину красиво отфоткать?
Lalalashechki Lalala
23
Карта сайта