scan directory system call
error handling
Merge branch 'develop'