-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample - Fix exports from Workspace to Windows FS #448
Conversation
Codecov Report
@@ Coverage Diff @@
## master #448 +/- ##
==========================================
+ Coverage 84.50% 84.84% +0.34%
==========================================
Files 42 42
Lines 3084 3135 +51
==========================================
+ Hits 2606 2660 +54
+ Misses 478 475 -3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@nfx I actually created this as a sample solution and didn't spend much time. I couldn't get back to it since then to finalize. Are we certain about the way I handled it (espc. regex)? |
Was this merged intentionally? |
@@ -166,15 +168,16 @@ def import_workspace_dir(self, source_path, target_path, overwrite, exclude_hidd | |||
'continue.').format(cur_src, extensions)) | |||
|
|||
def export_workspace_dir(self, source_path, target_path, overwrite, headers=None): | |||
if os.path.isfile(target_path): | |||
os_compatible_target_path = re.sub(LOCAL_OS_COMPATIBLE_PATH_REGEX, '_', target_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will replace C:\\Users\\admin
with C_Users\\admin
. Effectively it converts an absolute path to a relative path.
No description provided.