SONAR-1896 SONAR-3739 improve the API of scan file system