Git Product home page Git Product logo

Comments (5)

mark-hahn avatar mark-hahn commented on June 25, 2024

I changed my version so that the targetFilePath is changed to unix format. This works for me now but this may not work for other types of destinations.

targetFilePath = path.resolve(@settings.target,
                      path.relative(atom.project.getPath(), localFilePath))

targetFilePath = targetFilePath.replace /\\/g, '/'
if targetFilePath[0..1].toLowerCase() is 'c:'
    targetFilePath = targetFilePath[2..]
console.log {localFilePath, targetFilePath, projPath: atom.project.getPath()}

from remote-sync.

yongkangchen avatar yongkangchen commented on June 25, 2024
console.log {localFilePath, targetFilePath, projPath: atom.project.getPath()}

could you please provide output for me to check the issue?

from remote-sync.

mark-hahn avatar mark-hahn commented on June 25, 2024

My fix isn't very good. It works only with C drive and it may not work with windows or mac destinations. Anyway, here is the log with the original code ...

{localFilePath: "c:\ri\src\pages\version\versions.txt", targetFilePath: "C:\ri\src\pages\version\versions.txt", projPath: "c:\ri"}
Uploading: c:\ri\src\pages\version\versions.txt to C:\ri\src\pages\version\versions.txt 
Uploaded: c:\ri\src\pages\version\versions.txt to C:\ri\src\pages\version\versions.txt 

And this is with my change ...

{localFilePath: "c:\ri\src\pages\version\versions.txt", targetFilePath: "/ri/src/pages/version/versions.txt", projPath: "c:\ri"} 
Uploading: c:\ri\src\pages\version\versions.txt to /ri/src/pages/version/versions.txt
Uploaded: c:\ri\src\pages\version\versions.txt to /ri/src/pages/version/versions.txt 

from remote-sync.

mark-hahn avatar mark-hahn commented on June 25, 2024

BTW, now that this is working right, I love it. A good package just right for what I need.

from remote-sync.

yongkangchen avatar yongkangchen commented on June 25, 2024

Thanks for the issue.

from remote-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.