fs-based getDirection