Validate folderPath and filePath