Can I have a file with the same name in 2 folders inside iphone's document directory?

229 Views Asked by At

I checked and understood that we can create folders by different name inside documents directory.

My doubt is I have created two folders, folder1 and folder2. Is it possible to have a file named rock.pdf inside each the directories? Both the files will be different but will be having same name.

2

There are 2 best solutions below

0
On BEST ANSWER

Of course. The same file name in different folders is perfectly fine.

2
On

This happened to me when designers handed to me png resources for an app. AFAIK you can. However you will get a compiler warning stating that you have two entries for the same file name. I don't know what the side effects are, because I hate warnings and I corrected that in a second.