Top "Recursion" questions

Recursion is a kind of function call in which a function calls itself.

How to [recursively] Zip a directory in PHP?

Directory is something like: home/ file1.html file2.html Another_Dir/ file8.html Sub_Dir/ file19.html I am using …

php directory zip directory-structure recursion
Simplest way to do a recursive self-join?

What is the simplest way of doing a recursive self-join in SQL Server? I have a table like this: PersonID | …

sql sql-server recursion hierarchical-data self-join
recursion versus iteration

Is it correct to say that everywhere recursion is used a for loop could be used? And if recursion is …

algorithm recursion iteration
How to create nonexistent subdirectories recursively using Bash?

I am creating a quick backup script that will dump some databases into a nice/neat directory structure and I …

bash shell recursion subdirectory
How do I implement __getattribute__ without an infinite recursion error?

I want to override access to one variable in a class, but return all others normally. How do I accomplish …

python class oop recursion getattr
How to recursively list directories in C on Linux?

I need to recursively list all directories and files in C programming. I have looked into FTW but that is …

c linux recursion
GDB corrupted stack frame - How to debug?

I have the following stack trace. Is it possible to make out anything useful from this for debugging? Program received …

c recursion gdb
How can I upload an entire folder, that contains other folders, using sftp on linux?

I have tried put -r directory/*, which only uploaded the files and not folders. Gave me the error, cannot Couldn't …

linux recursion upload console sftp
Why does my recursive function return None?

I have this function that calls itself: def get_input(): my_var = input('Enter "a" or "b": ') if my_…

python function recursion return
Recursively List all directories and files

I would like to receive the following output. Suppose the directory structure on the file system is like this: -dir1 …

shell recursion directory-listing