Top "Directory" questions

A directory or folder is a virtual container within a digital file system, in which groups of computer files and other directories can be kept and organized.

Check if a string is a valid Windows directory (folder) path

I am trying to determine whether a string input by a user is valid for representing a path to a …

c# windows validation filesystems directory
How do you get a directory listing in C?

How do you scan a directory for folders and files in C? It needs to be cross-platform.

c file directory cross-platform common-tasks
How do I find the parent directory in C#?

I use this code for finding the debug directory public string str_directory = Environment.CurrentDirectory.ToString(); "C:\\Users\\Masoud\\Documents\\…

c# directory filesystems
Zip folder in C#

What is an example (simple code) of how to zip a folder in C#? Update: I do not see namespace …

c# zip directory archive compression
How to check if a given directory exists in Ruby

I am trying to write a script which automatically checks out or updates a Subversion URL based on whether a …

ruby directory
How to get folder directory from HTML input type "file" or any other way?

So I have a basic form input with the type "file" however I want the user to be able to …

html file input directory
How to add 'libs' folder in Android Studio?

I need help in creating the 'libs' folder in Android Studio for my project (It is not auto-generated in my …

android android-studio directory libs
How to make g++ search for header files in a specific directory?

I have a project (a library) that is subdivided into a few directories with code in them. I'd like to …

directory g++ header-files include-path
Android: How to open a specific folder via Intent and show its content in a file browser?

I thought this would be easy but as it turns out unfortunately it's not. What I have: I have a …

android android-intent directory android-sdcard
Renaming a directory in C#

I couldn't find a DirectoryInfo.Rename(To) or FileInfo.Rename(To) method anywhere. So, I wrote my own and I'm …

c# file-io directory rename