Does Linux treat documents as a folder?

Screenshot from 2024-08-02 00-26-06

Today I notiecd that Zorin treats one of my documents as a folder. But a document without any extension. it should be TXT.
Is it a bug or does it the way Linux treat files and folders?

Open the folder that the file is in in the Terminal and type ls please send what the output shows

1 Like

The output is 'Document', just that

can you send a screenshot of the terminal?

1 Like

I guess the following lines explain well.

Folders do not have extensions.
A file cannot contain another file/folder.
A folder can contain any number of file/folders.
A file has certain size and memory consumption.

I'd assume the file is corrupted did you download it from somewhere?

1 Like

Nah, everything is fine, because I didn't use the extension for document file, it assumes as a folder.

yeah I was assuming, that I was going to ask you to cat the file. So everything is fine now?

1 Like

Yeah, Thank you very much

2 Likes

No problem, Happy to help have a good day please mark any of the responses as a solution if it helped you!

2 Likes

image

I know that the topic has already been closed, but looking at the image in the first post I couldn't identify what was exposed.

There is a file called "Document", ok.

Then an attempt was made to create a folder with the same "Document" name, and it warns that a file with this name already exists.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.