answersLogoWhite

0

AllQ&AStudy Guides
Best answer

Yes. A directory can be called a file and, in most implementations, under the wraps, it is a file, but it is not a file that an ordinary user can access. It is the responsibility of the file system code in the operating system. Unless you are writing code that manages file systems, it is best to think of a directory as a directory and to use the API provided to access it.

This answer is:
Related answers

Yes. A directory can be called a file and, in most implementations, under the wraps, it is a file, but it is not a file that an ordinary user can access. It is the responsibility of the file system code in the operating system. Unless you are writing code that manages file systems, it is best to think of a directory as a directory and to use the API provided to access it.

View page

In hierarchical file systems such as Windows, the root directory (which really isn't a directory at all) is basically the starting point in the hierarchy. In most Windows systems this is known as C:\.

View page

Use the file type test:

if [ -d $file ]; then

echo $file is a directory

elif [ -f $file ]; then

echo $file is a file

else

echo $file is not a directory or a file

fi

View page

This is a display of file permissions. In particular, it means:

drwxrw-r-- - The specified object is a directory, not a file

drwxrw-r-- - The file / directory can be read by its owner

drwxrw-r-- - The file / directory can be modified by its owner

drwxrw-r-- - The file / directory can be executed as a binary by its owner

drwxrw-r-- - The file / directory can be read by members of the specified group

drwxrw-r-- - The file / directory can be modified by members of the specified group.

drwxrw-r-- - The file / directory cannot be executed by members of the specified group.

drwxrw-r-- - The file / directory can be read by others not in the group.

drwxrw-r-- - The file / directory cannot be modified by others not in the group.

drwxrw-r-- - The file / directory cannot be executed by others not in the group.

View page

Yes you need to put the file in the same directory. This will get the file to be executed from the HTML file.

View page
Featured study guide

Computers

20 cards

Which of the following is one symptom that might indicate a problem with your computer memory (RAM)

What is one task of a system optimization tool

What does a General disk cleanup do

What is one advantage of video tutorials about maintenance and repairs

➡️
See all cards
5.0
1 Review
More study guides
5.0
1 Review

No Reviews
Search results