[api] support share dir