move folder check before generating preview