Changed reading file type from readdir d_type to stating file.
Changed reading file type from readdir d_type to stating file.

sahara-labs/rig-client-commons,sahara-labs/rig-client-commons,sahara-labs/rig-client-commons,sahara-labs/rig-client-commons,sahara-labs/rig-client-commons,sahara-labs/rig-client-commons