Talk:Empty directory: Difference between revisions
Content added Content deleted
(Things to watch for) |
No edit summary |
||
Line 2: | Line 2: | ||
If anyone's writing a solution, be aware that not every directory contains <code>..</code>. Root directories don't and they can be empty (except for <code>.</code>). Good solutions will take care of this case (which admittedly is only practically going to happen on Windows; Unix has a single root and that's unlikely to ever be empty in practice given that you're running some code at all). –[[User:Dkf|Donal Fellows]] 10:34, 3 January 2012 (UTC) |
If anyone's writing a solution, be aware that not every directory contains <code>..</code>. Root directories don't and they can be empty (except for <code>.</code>). Good solutions will take care of this case (which admittedly is only practically going to happen on Windows; Unix has a single root and that's unlikely to ever be empty in practice given that you're running some code at all). –[[User:Dkf|Donal Fellows]] 10:34, 3 January 2012 (UTC) |
||
:Every root directory I have ever seen contains [code]..[/code] -- in root directories, [code]..[/code] and [code].[/code] are the same. --[[User:Rdm|Rdm]] 18:25, 3 January 2012 (UTC) |
Revision as of 18:25, 3 January 2012
Things to watch for
If anyone's writing a solution, be aware that not every directory contains ..
. Root directories don't and they can be empty (except for .
). Good solutions will take care of this case (which admittedly is only practically going to happen on Windows; Unix has a single root and that's unlikely to ever be empty in practice given that you're running some code at all). –Donal Fellows 10:34, 3 January 2012 (UTC)
- Every root directory I have ever seen contains [code]..[/code] -- in root directories, [code]..[/code] and [code].[/code] are the same. --Rdm 18:25, 3 January 2012 (UTC)