Specify the behavior of Path

All our services should support two kinds of paths:

  • Relative Path: all of them are the subpath of WorkDir.
  • Absolute Path: mostly start with / just like in Linux.

And WorkDir is always an absolute path.

We add this rule for:

  • symlink support
  • user friendly

According to path separator, we need to support both unix and windows style. But we will make sure all path in Object is the unix style.

OS-specific path separator problem · Issue #22 · beyondstorage/go-service-ftp · GitHub is related to this issue.

GSP-749: Unify Path Behavior by JinnyYi · Pull Request #749 · beyondstorage/go-storage · GitHub proposed.