Skip to content
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

Windows path improvements #171

Closed
wants to merge 4 commits into from
Closed

Conversation

MichaelAquilina
Copy link
Owner

@MichaelAquilina MichaelAquilina commented Nov 22, 2018

@ranaur I reckon this PR should fix the windows path issues in a much simpler fashion :)

Could you test it out by installing as follows:

pip install git+https://github.com/MichaelAquilina/S4/@windows_path_improvements

(Fixes #156)

@MichaelAquilina MichaelAquilina force-pushed the windows_path_improvements branch from 238625b to a7a52a3 Compare November 22, 2018 10:21
@codecov
Copy link

codecov bot commented Nov 22, 2018

Codecov Report

Merging #171 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #171      +/-   ##
==========================================
+ Coverage   98.02%   98.02%   +<.01%     
==========================================
  Files          34       34              
  Lines        2328     2331       +3     
==========================================
+ Hits         2282     2285       +3     
  Misses         46       46
Impacted Files Coverage Δ
tests/test_resolution.py 100% <ø> (ø) ⬆️
tests/test_sync.py 100% <ø> (ø) ⬆️
tests/commands/test_sync_command.py 100% <ø> (ø) ⬆️
s4/clients/s3.py 98.18% <100%> (+0.02%) ⬆️
tests/clients/test_s3.py 100% <100%> (ø) ⬆️
s4/clients/local.py 96.44% <100%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7b3e86...7cd814e. Read the comment docs.

@MichaelAquilina MichaelAquilina force-pushed the windows_path_improvements branch 2 times, most recently from 4388069 to 8dbd331 Compare November 22, 2018 10:35
ranaur and others added 2 commits November 26, 2018 18:27
@MichaelAquilina
Copy link
Owner Author

@ranaur please test this again by pulling the latest changes (which you provided in #175)

@ranaur
Copy link

ranaur commented Nov 27, 2018

Well ... I tested and I got the same bug I got with an earlier version. When syncing files in a subdirectory, it is syncing as "dir\file.ext" and not "dir/file.ext". So, in the s3 repository it show a file named "dir\file.ext" in the root dir, and not a folder named "dir", with a file names "file.ext" in it. I have a version that solves this problem, I'll commit it soon.

@ranaur
Copy link

ranaur commented Nov 27, 2018

In this version, the get_local_keys() method always returns files using "/" to separate paths, and the other methods expect the keys to be in this way.

@MichaelAquilina
Copy link
Owner Author

Hi @ranaur I would prefer to avoid complex abstractions like one you have proposed. I think the best action I can take right now is to add integration to AppVeyor so I can update code and test in a quicker fashion. I will get down to working on this as soon as I find the chance :)

@ranaur
Copy link

ranaur commented Dec 3, 2018 via email

@MichaelAquilina
Copy link
Owner Author

My intention for Appveyor is to be able to provide support for windows by making sure that tests pass on Linux as well as Windows.

Without a CI to test, the project can not really support Windows so that is the first step.

Merging any more changes before that would be pre-mature as it would mean merging potentially unstable code upstream.

I have not taken a good look at the daemon code yet - but it does look like it needs to be simplified.

After I've got appveyor merged in (along with all the tests passing on Windows) - we can think about merging additional features (like looking into supporting a daemon on Windows).

@ranaur
Copy link

ranaur commented Dec 21, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support on windows
2 participants