You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The path.getrelative function computes a relative path from one directory to another.
p=path.getrelative("src", "dest")
Parameters
src is the originating directory, dest is the target directory. Both may be specified as absolute or relative to the current working directory. The paths do not need to exist on the file system.