divide directory for different device