Can two files in a directory have name if they have different directories?

1 answer

Answer

1237658

2026-04-02 17:40

+ Follow

Yes, two files can have the same name if they are located in different directories. In most file systems, the file name is only unique within its own directory, allowing the same name to be used in different locations. For example, a file named "report.txt" can exist in both the "Documents" and "Downloads" directories without conflict.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.