What order does the filemng return entries in?

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 12:56:28 UTC

Modified:

2016-12-21 19:35:24 UTC

0

Was this article helpful?


Have more questions?

Submit a request

What order does the filemng return entries in?

Question

What order does the /usr/local/psa/admin/bin/filemng return entries in?

Answer

The filemng utility uses opendir / readdir functions that just use the directory entries in the order they are linked together. So no order is guaranteed.

On most systems readdir returns directory entries in the same order that the system call does. In theory a Unix kernel can return directory entries in whatever order it wants (including, sorted alphabetically for example). In practice kernels almost always give you directory entries in whatever the natural order is for entries in the on-disk data structures that represent a directory.

Have more questions? Submit a request
Please sign in to leave a comment.