[GH-ISSUE #46] Convert UNC path to SMB path #45

Closed
opened 2026-02-25 21:32:31 +03:00 by kerem · 3 comments
Owner

Originally created by @ghost on GitHub (Oct 31, 2018).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/46

Originally assigned to: @clechasseur on GitHub.

Hello!

Please could you add another option to convert a UNC path to SMB path?
Quite similar to Internet path, smb://path instead of file://path

Currently it would be really useful for PC to Mac sharing!

Thanks!
Regards

Originally created by @ghost on GitHub (Oct 31, 2018). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/46 Originally assigned to: @clechasseur on GitHub. Hello! Please could you add another option to convert a UNC path to SMB path? Quite similar to Internet path, smb://path instead of file://path Currently it would be really useful for PC to Mac sharing! Thanks! Regards
kerem 2026-02-25 21:32:31 +03:00
Author
Owner

@clechasseur commented on GitHub (Nov 18, 2018):

This has been implemented in master and will be part of the next release.

<!-- gh-comment-id:439664018 --> @clechasseur commented on GitHub (Nov 18, 2018): This has been implemented in `master` and will be part of the next release.
Author
Owner

@clechasseur commented on GitHub (Jan 29, 2019):

Not sure I understand as Path Copy Copy does not have clickable links. Do you mean that the Copy SMB Path command does not produce a path in the correct format? If so, what is the correct format?

<!-- gh-comment-id:458693784 --> @clechasseur commented on GitHub (Jan 29, 2019): Not sure I understand as Path Copy Copy does not have clickable links. Do you mean that the Copy SMB Path command does not produce a path in the correct format? If so, what is the correct format?
Author
Owner

@clechasseur commented on GitHub (Feb 28, 2019):

The Samba command seems like too fringe a feature to add a new command to copy the parent folder path... and if I change the default behavior, it will seem out-of-place compared to the Internet command.

I suggest you create a custom command based on Copy Samba Path and use regular expressions to keep only the folder path:

Find what: ^(.*/)[^/]*$
Replace with: $1

In my tests here it succeeds in copying the parent folder path, including terminating /.

<!-- gh-comment-id:468119409 --> @clechasseur commented on GitHub (Feb 28, 2019): The Samba command seems like too fringe a feature to add a new command to copy the parent folder path... and if I change the default behavior, it will seem out-of-place compared to the Internet command. I suggest you create a custom command based on Copy Samba Path and use regular expressions to keep only the folder path: **Find what:** `^(.*/)[^/]*$` **Replace with:** `$1` In my tests here it succeeds in copying the parent folder path, including terminating `/`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pathcopycopy#45
No description provided.