0
голосов
1ответов
531 просмотров

httphandler filetype mapping requires virtual directory (or does it?)

I am using an httpHandler to pass all requests for *.gif files to an ashx handler. i only want to do this for requests to a sub-folder within the website. The website root is called 'demo' and the subfolder is called et. So, I add a web.config file to the et folder with an entry as follows: ...

0
голосов
1ответов
53 просмотров

How do you consistently retrieve the path information from the query in php? (/index.php/foo/bar)

Basically if the user requests: index.php/foo/bar I need "/foo/bar" and for index.php I need "" or "/" I couldn't find any information on google because I don't know what this is called (path info got me the pathinfo() function) I found PHP_SELF returns differently if there is path info ...

8
голосов
5ответов
4688 просмотров

How do I write a cpp __DIR__ macro, similar to __FILE__

The __FILE__ and __LINE__ macros are built into the C Pre-Processor, and are often used for printing debug output with file names and line numbers. I need something similar, but with just the name of the directory at the end of the path. For instance if my code is in: /home/davidc/some/path/to/so...

0
голосов
3ответов
830 просмотров

How to make XCode put required resources in "build" folder?

I am trying out lua script with C++ in Mac OS X. I was finding a way to make the program returning the current working directory. That's no problem with getcwd, but then I came one thing: My foo.lua stays at its initial path only. When I compile program, it is not being copied over to the build/...

0
голосов
1ответов
163 просмотров

Folders (directories) not being detected properly

I am noticing an error with the 'bog standard' Objective-C folder detection code. I am scanning files and folders with a given path and keeping count of how many files exist and how many folders exist. Oddly enough, I am returning a count of one more folder than actually exists! Stepping throu...

0
голосов
2ответов
4629 просмотров

htaccess rewriteRule restrict access to one particular folder problem

I have problem with getting the folder inc restricted. It is only the inc folder in the root directory and not the inc folders higher up de hiarchie Problems are: IE will start a download/open dialog and FF displays an include file I don´t have this problem with the images folder wich is ...

0
голосов
1ответов
684 просмотров

ASP.Net page access directory on another server

I need to let an aspx.cs file run code to enumerate the contents of a directory on another server altogether. Basically, use a Directory object, etc. Here is what I can piece together (I'm really not a network rights guy at all, so this is all confusing to me.) When a user loads my aspx page, ...

0
голосов
3ответов
3098 просмотров

Sharepoint Alerts on List Folders

I would like to programatically add alert to folders inside a sharepoint list. I have found how to set alerts to a list and this works perfect. Could someone please help me on how to set alerts to a specific folder which is inside a list. Below is the code i currently have which sets alerts o...

3
голосов
5ответов
320 просмотров

How can I read a directory in Perl with one statement?

I'm writing a script that looks for certain files in a directory and processes them. I keep on writing the following: opendir DIR, $dir; @files = readdir DIR; closedir DIR; While I could (and in fact should) wrap this in a function, I was wondering if there's a more elegant way to do this?

1
голосов
4ответов
291 просмотров

Lost svn directory some time ago.. how do I find out which revision has it?

I lost an svn directory some time ago, but don't know which revision has it? I looked at the log, but I'm guessing it is one of the times there is no comment ;)

1
голосов
4ответов
25183 просмотров

How can I create a directory on the file system?

How do you create a physical directory on the OS from within PL/SQL? I looked at the CREATE OR REPLACE DIRECTORY command but that doesn't do it. Neither does UTL_FILE appear to be capable.

1
голосов
2ответов
1360 просмотров

Adobe AIR drag and drop directory

Please let me know how can I drag and drop a directory from windows onto Adobe AIR panel. The folder has subFolders inside. The subFolders have many files. I want to drag the parent folder and drop it so that the whole structure has to get uploaded. Please help.

0
голосов
3ответов
100 просмотров

Unpacking a directory into its parent directory

I've got a directory (wordpress) in a folder (the main html directory of my website) and I'd like to "unpack" it into the main html directory. That is to say, I'd like to remove the wordpress directory and have all its subdirectories be under /html/ instead of /html/wordpress/. How do I do this?

1
голосов
4ответов
448 просмотров

Debugging GetAllFilesAndDirectories method, when there are empty sub-directories

This method works to get the files, directories and sub-directories and their contents, UNLESS one of the sub-directories happens to be empty. public static IEnumerable<FileSystemInfo> GetAllFilesAndDirectories ( string dir ) { DirectoryInfo dirInfo = new DirectoryInfo( dir ); ...

5
голосов
6ответов
2574 просмотров

Beginner-friendly method to get list of all files and directories

Using .NET 3.0, I've got the method below which correctly returns a collection of all of the files and directories (and sub-directories) of a specified directory. I'd like to, if possible, dumb this down to only use constructs that I'm pretty comfortable with. Specifically, here are the things I'...

1
голосов
4ответов
873 просмотров

How do I create a monitor for a specific directory?

Using Java over Windows Vista, I'm trying to create a kind of a monitor for a directory, so every time this directory is modified (new, renamed, updated or deleted files) a process is triggered. I tried to do this with a loop that will execute a dir in the directory and analyze all the files. But...

0
голосов
3ответов
3505 просмотров

Upload a folder in ASP.NET of Flash or Silverlight

Is there any way to upload entire folder (a folder) in asp.net? Is there any way to upload in Flash or Silverlight?

1
голосов
3ответов
2012 просмотров

Folder right click menu(Only Folder)

See this.What should i use instead of "Jpegfile" in the sample to represent folders? I don't want Drives,Recyclebin,Computer(My computer in XP),My Documents(in xp),etc. to be included too. I want my right click menu entry to be added to folders' right click menu only. Thanks and Regards. Please n...

1
голосов
2ответов
86 просмотров

is there a way to parse or read the directory as a file?

This might be sort of trivial question but in any case, i was wondering if there is a way to read a directory as a file which one will be using open(), close(), read() instead of opendir(), closedir(), readdir()... I might be wrong, however, i'm thinking that this can speed-up directory travers...

1
голосов
3ответов
313 просмотров

Where should I put configuration files in .NET?

In .NET, how should I get access to a folder for holding configuration data specific to the current machine or user (to avoid hard-coding a path)? (related:) Which is the best location to keep program configuration file in WINDOWS? Question answered... by the way, here's typical WinXP output of...

37
голосов
14ответов
51151 просмотров

How do I recursively create a folder in Win32?

I'm trying to create a function that takes the name of a directory (C:\foo\bar, or ..\foo\bar\..\baz, or \someserver\foo\bar), and creates directories as necessary so that the whole path is created. I am attempting a pretty naive implementation of this myself and it seems to be a string processi...

0
голосов
3ответов
763 просмотров

Absolute Relative path issues in referencing web assets - need help - php related

Hi guys I'm in a bit of a pickle here now. Well to start with I built a simple CMS in PHP with an admin panel the directory structure is like this: root/ ->admin/ ->images/ It worked fine as is however the client requirements changed and they wanted that instead of having to acce...

33
голосов
9ответов
38351 просмотров

How do I use filesystem functions in PHP, using UTF-8 strings?

I can't use mkdir to create folders with UTF-8 characters: <?php $dir_name = "Depósito"; mkdir($dir_name); ?> when I browse this folder in Windows Explorer, the folder name looks like this: Depósito What should I do? I'm using php5

2
голосов
3ответов
2087 просмотров

Replace Subversion Folder and Retain History

I have two development trees v3.3, and v3.4 in one SVN repository. They both contain a project called test-harness. However, the v3.4 developers have wrecked the test-harness so we need the test-harness from project in v3.3 to overwrite what we have in v3.4. I want to retain the history of change...

2
голосов
3ответов
2038 просмотров

MFC Get Folders

Hey how do I in MFC get names of all folders? Any examples or which classes should I look into? Any hints will be really appreciated. All I saw is the CFile, which as far as I have seen (though very very little) doesn't looks like it has the ability to do what I want. So please direct me. Thanks

1
голосов
3ответов
2913 просмотров

Folder Explorer in C#

I'm trying to create an easy money folder explorer in c# and, because I'm a noob, I don't have many ideas except using webbrowser, which works (if anyone has a better idea please let me know it). THE QUESTION: how do I make it start in "view - medium icons" instead of "view - details" ? Thanks ...

0
голосов
1ответов
183 просмотров

How do I refer to the right Directory?

If my Java Class is in: ` package org.gamehost.flyingame.BookManagementServlet.ModelClass aka: BookManagementSoftwareServlet/org/gamehost/flyingame/BookManagementServlet/ModelClass and in that class, if I want to return a file from a directory, say an html file, after doing this: ...

14
голосов
6ответов
44953 просмотров

How can I get a list of all files with a certain extension from a specific directory?

I'm using this code to get a list of all the files in a specific directory: opendir DIR, $dir or die "cannot open dir $dir: $!"; my @files= readdir DIR; closedir DIR; How can I modify this code or append something to it so that it only looks for text files and only loads the array with the pre...

1
голосов
3ответов
1060 просмотров

Creating folders using DirectoryEntry

I am writing an ASP.NET (C#) application to create users for my domain. It also has to create folders and shares on a separate file server. I have so far been able to accomplish my task using System.IO.Directory.CreateDirectory to create the folders, a ("WinNT://fileserver/lanmanserver") Dire...

0
голосов
2ответов
417 просмотров

C# - end/finished "event" of a recursive function?

Lets assume the following function: private void ParseFolder(string strFolder) { foreach (string currentFolder in Directory.GetDirectories(strFolder)) ParseFolder(strFolder); } Now we start our recursive loop with: ParseFolder("C:\"); Is there a way to be notified when this recusriv...