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

File deletion on server not reflected in local after clasp pull #291

Open
tanyagupta opened this issue Aug 15, 2018 · 5 comments
Open

File deletion on server not reflected in local after clasp pull #291

tanyagupta opened this issue Aug 15, 2018 · 5 comments
Labels
API support needed A lack of a Google API feature blocks this issue feature request
Milestone

Comments

@tanyagupta
Copy link

(Please search existing issues before creating a new one.)

Expected Behavior

clasp pull should pull latest changes made remotely both additions and deletions (including added or deleted files)

Actual Behavior

Using clasp pull I am finding files deleted in the server are not being deleted locally.

Steps to Reproduce the Problem

  1. clasp clone
  2. Then delete a file on the server
  3. clasp pull
  4. local copy still shows deleted file

Specifications

  • Node version (node -v): 8.9.4
  • Version (clasp -v): 1.5.2
  • OS (Mac/Linux/Windows): Mac
@tanyagupta tanyagupta changed the title File deletion on server not reflected in local after _clasp pull_ File deletion on server not reflected in local after clasp pull Aug 15, 2018
@grant
Copy link
Contributor

grant commented Aug 15, 2018

Yes, this is a known issue. The API doesn't make it easy to safely delete files.

I guess I could delete all non-ignored, non-pulled files when you pull. This would still not delete ignored files though.

@tanyagupta
Copy link
Author

Thanks @grant good to know.

@grant grant added this to the Nice To Have milestone Oct 29, 2018
@grant grant added the API support needed A lack of a Google API feature blocks this issue label Jan 25, 2019
@grant
Copy link
Contributor

grant commented Jan 25, 2019

In reality, we'd need a better file system with API like git to detect server deletions.

@Anuvad
Copy link

Anuvad commented Nov 8, 2021

Any update on this please?

@coreyjansen
Copy link

+1 to many times i have duplicated a file because of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API support needed A lack of a Google API feature blocks this issue feature request
Projects
None yet
Development

No branches or pull requests

4 participants