filesystem

P

Prashant Agrawal

Guest
Why can not we store a folder in a file....as we can do the vice versa
 


Think of a folder like a real paper folder and think of a file like a piece of paper. The folder cannot go in a paper. Does that answer your question? If it has click "Like" and "Best Answer".
 
What you are saying is just a logical answer to my question.....I want a technical answer in terms of the filesystem....why it is not possible technically
 
A directory is a unique type of file that contains only the information needed to access files or other directories. As a result, a directory occupies less space than other types of files.

So technically, a directory IS a file. But this file has information that contains the locations and other needed information on other files that are "IN" it. We must remember that the files are all on the same "Disk Plate". And that each file has a 3d location. So really files are not "IN" directories.

Source:
http://pic.dhe.ibm.com/infocenter/a....baseadmn/doc/baseadmndita/filesys_struct.htm

More:
http://en.wikipedia.org/wiki/Directory_(computing)
 
Directories and files both are the types of files in linux,both are different just according to their functionality as a Directory can contain information and files in it,while a file can only hold information,Data but can not hold other files, all these comes under inode structuring of files and directories. :)
 

Members online


Top