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?
...
Hi
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 do it. This would be in Oracle 10g and upwards.
thanks
...
Hi,
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 ;)
...
Is there any open source telephone directory application for Android or how can I make one myself?
...
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?
...
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, that page, code behind, is actually runnin...
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 through the routine with debug and watching eac...
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/Debug directory. Sure, I can grab my scrip...
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/some/code/foo/bar I need a macro that will j...
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 than if there is no info
...
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:
This is not enough to pass all *.gif reque...
Few months ago I have asked a question regarding how to change database location at runtime - I didn't get any solution for this problem yet.
I am needing to create more than 32,000 databases in MySQL. The default data location of MySQL data folder, after creating 32,000 database on that location, I want to change the data directory to ...
Apache version 2.2.11 (Unix)
Architecture x86_64
Operating system Linux
Kernel version 2.6.18-164.el5
Ok, here is what I have working. However, I may not be using File::Util for anything else in the rest of the script.
My directory names are 8 digits starting at 10000000 .
I was comparing the highest found number with stat last create...
I've currently got:
ls -1 $(pwd)/*
Gives me all the files in a directory with absolute paths - but formats it with the directory at the start of each list of files.
Is there a way just to get a list of files in a directory recursively (absolute paths) - excluding the directory/sub-directories themselves?
...
I've got a list of directories that contain spaces.
I need to surround them with ' ' to ensure that my batch scripts will work.
How can one surround each new line with a ' and a ' (quotes).
e.g.
File1:
/home/user/some type of file with spaces
/home/user/another type of file with spaces
To
File2:
'/home/user/some type of file wit...
I need to check a directory to see if there are any files whos file name contains a specific keyword and if there are, to delete them. Is this possible?
Example:
If there are any files in "C:\Folder" whos file name contains the keyword "Apple", delete them.
Thanks.
...
Seems it's not easy, I don't want to create a bat call an exe to do that.
Is there a method to create a windows exe, that can change the current directory when it exit.
...
Say I have a directory structure like this
dir1
dir2
dir3
dir2is already under version control, whereas dir1 is not. Now I realize that I would like to have dir1 under version control as well (and maybe later on dir3 etc.) How can I do this and reflect the changes correctly in the repository?
If I just move dir2 out of dir1, a...
Hi guys!
I have created a script that save some files in the Documents directory of my app! Now I need to copy these files in my "application.app" directory...
How I can do this?? Thanks to everyone that can help me! :)
...
Hi all,
i found out that google will only index the top level URL from my site but i have a blog in my site as well that i want it to be listed in blog directories.
so my question is:
since i name the blog under www.mydomain.com/blog.html it is certain that google will only take www.mydomain.com in to consideartion.
so what if i name...