directory

Searching directories for tons of files?

I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called Directory.GetFiles, but once I started testing in a pseudo-real environment, it timed out. What's the b...

Can you set, or where is, the local document root?

When opening a file from your hard drive into your browser, where is the document root? To illustrate, given the following HTML code, if the page is opened from the local machine(file:///) then where should the css file be for the browser to find it? <link href="/temp/test.css" rel="stylesheet" type="text/css" /> ...

Why would getcwd() return a different directory than a local pwd?

I'm doing some php stuff on an Ubuntu server. The path I'm working in is /mnt/dev-windows-data/Staging/mbiek/test_list but the PHP call getcwd() is returning /mnt/dev-windows/Staging/mbiek/test_list (notice how it's dev-windows instead of dev-windows-data). There aren't any symbolic links anywhere. Are there any other causes for getc...

OpenFileDialog. How about "Specify Directory Dialog"?

On a file path field, I want to capture the directory path like: textbox1.Text = directory path Anyone? ...

File and directory with same name in same parent directory - Solaris 8, ufs

Ok, I have been working with Solaris for a 10+ years, and have never seen this... I have a directory listing which includes both a file and subdirectory with the same name: -rw-r--r-- 1 root other 15922214 Nov 29 2006 msheehan drwxrwxrwx 12 msheehan sysadmin 2048 Mar 25 15:39 msheehan I use file to discover contents of ...

how to check if a directory exists in a makefile

I need to generate a directory in my makefile and I would like to not get the "directory already exists error" over and over even though I can easily ignore it. I mainly use mingw/msys but would like something that works across other shells/systems too. I tried this but it didn't work, any ideas? ifeq (,$(findstring $(OBJDIR),$(wildc...

PHP: How to check if a directory is writeable?

Does anyone know a good way to check to see if a directory is writeable? The function is_writable doesn't work for folders. ...

Directory Modification Monitoring

I'm building a C# application that will monitor a specified directory for changes and additions and storing the information in a database. I would like to avoid checking each individual file for modifications, but I'm not sure if I can completely trust the file access time. What would be the best method to use for getting recently modi...

How to ignore a directory with SVN?

Just started using SVN and I have a cache directory that I don't need under source control. How can I ignore the whole directory/folder with SVN? Edit: Using Versions and TextMate on OSX and commandline ...

How to determine the OS path separator in JavaScript?

How can I tell in JavaScript what path separator is used in the OS where the script is runnning? ...

How do I obtain the size of a folder?

I'm converting an old app that records folder sizes on a daily basis. The legacy app uses the Scripting.FileSystemObject library: Set fso = CreateObject("Scripting.FileSystemObject") Set folderObject = fso.GetFolder(folder) size = folderObject.Size There isn't an equivalent mechanism on the System.IO.Directory and System.IO.DirectoryI...

C/C++: How to obtain the full path of current directory?

Is there a platform-agnostic and filesystem-agnostic method to obtain the full path of the directory from where a program is running using C/C++? Not to be confused with the current working directory. (Please don't suggest libraries unless they're standard ones like clib or STL.) (If there's no platform/filesystem-agnostic method, sugge...

How to remove illegal characters from path and filenames?

I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am I missing? using System; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string illeg...

Where to put common writable application files?

Hello all, I thought that CSIDL_COMMON_APPDATA\company\product should be the place to put files that are common for all users of the application and that the application can modify, however, on Vista this is a read-only location, unless modified by the installer (as per MSDN - http://msdn.microsoft.com/en-us/library/ms995853.aspx), so.....

Delphi Active Commercial Components

Similar to the Delphi FOSS component question, a commercial component directory will also be a valuable searchable resource. I invite you to contribute your expierience with your favourite commercial components and also share with us your experiences with commercial components that doesn't make the grade as well. Then there is the questi...

How do I create a directory from within Emacs?

How exactly can I create a new directory using Emacs? What commands do I use? (If possible, please provide an example) ...

How do you get a directory listing sorted by creation date in python?

What is the best way to get a list of all files in a directory, sorted by date [created | modified], using python, on a windows machine? ...

Browsing directory without using mapped drive

Is there an app or way to browse a directory that requires different login credentials without using a mapped drive? The issue is given one login credential Windows Explorer only allows you to map it to one drive and disallows using the same login credential to map to a different drive. ...

Help with ASP.Net error: "Cannot use a leading .. to exit above the top directory"

I'm seeing this error several times an hour on my production site and am not quite sure how to fix it. I've grepped the source code and I am not using "../" anywhere in my code to generate a path. My application is running on IIS6 on Win2003 Server. It's using URLRewriter.Net to allow the site to have friendly URLs, and I'm wondering if...

Best way to replace a whole directory tree in Subversion?

Within my Subversion project I have a few directories that contain other open source projects that my code needs. For example ffmpeg, freetype, matrixssl and a few others. What is the best way to update SVN to hold the the latest version of one of these projects? Essentially I will be doing the following (using ffmpeg as an example): ...