I see .keep file in every directory in rails skeleton.
what is that file for?
What is its significance?
Asked
Active
Viewed 2.3k times
51
Slava Babin
- 688
- 2
- 12
- 30
illusionist
- 9,926
- 2
- 59
- 77
1 Answers
137
This is not for Rails actually, this is for git.
Git doesn't track "empty" directories, so, the directories like eg. "/logs" wouldn't end up in the repository. Having a .keep in it, makes the directory to be tracked.
Updates:
In Unix based systems, files starting with a dot(.) are considered hidden and do not appear in the UI. Hence might not disturb you.
Community
- 1
- 1
Paweł Dawczak
- 9,251
- 2
- 23
- 36