jmportilla / Python-for-Algorithms--Data-Structures--and-Interviews

Files for Udemy Course on Algorithms and Data Structures
2.52k stars 2.36k forks source link

Can't clone repository on Windows #7

Open NealHumphrey opened 6 years ago

NealHumphrey commented 6 years ago

This repository makes use of very long filepaths/filenames. Subfolders state the full name of the module and then repeat the name in the interview questions section, i.e.:

Python-for-Algorithms--Data-Structures--and-Interviews
    /Stacks, Queues and Deques
        /Stacks, Queues, and Deques Interview Problems
            Implement a Queue -Using Two Stacks - SOLUTION.ipynb

When trying to clone the whole repository to my Windows machine, it is not possible to complete because the filenames of some folders are too long when stored in the typical folder I use for Github repos (which has a not-too-deep path of ~30 characters itself).

Consider renaming folders to make it possible to clone the entire repository instead of manually downloading .pynb files one by one.

lovegis commented 6 years ago

Agreed. This is a bummer!!!

Pierian-Data commented 6 years ago

Edit your MAX_PATH limits: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#maxpath

lovegis commented 6 years ago

Actually, I don't think it's an issue with path lengths. The error I'm receiving is:

"Fatal: cannot create directory at 'Linked Lists/Linked Lists Interview Problems/Linked List Interview Problems /.ipynb_checkpoints': No such file or directory"

Pierian-Data commented 6 years ago

I will look into this, its a bit strange though, because I developed these on my windows machine.

fajarmf10 commented 6 years ago

Same problem here. I think maybe the problem is the dot folder name, because i never had any problem with dot file name on windows.

petewww commented 6 years ago

I'm seeing a problem too. Even after allowing long path names I cannot unzip properly or clone using GitHub desktop without some errors on Windows 10.

fatal: cannot create directory at 'Linked Lists/Linked Lists Interview Problems/Linked List Interview Problems /.ipynb_checkpoints': No such file or directory warning: Clone succeeded, but checkout failed.

Jasmi77 commented 6 years ago

Same issue here - are you able to find solution ? need it urgent

paulzcgu commented 5 years ago

Same issue here - are you able to find solution ? need it urgent

I found it's possible to unzip it with 3rd party tools such as: https://www.7-zip.org/

Download the zip from github, and use the tool I mentioned above to unzip it.

ksore commented 5 years ago

I am having the same issue as well on windows 10. I have tried github desktop/downloading and unzipping and cannot get most of the files for some reason.

pedrocantu16 commented 4 years ago

Still same issue. I'm getting the error: fatal: cannot create directory at 'Linked Lists/Linked Lists Interview Problems/Linked List Interview Problems /.ipynb_checkpoints': No such file or directory