Backport #2440 js parameter.
ignore files in scanFile instead of scan to catch all occurences.
supress write hook for .part files