I am trying to debug right now in C and am curious if it is alright to call opendir() repeatedly without having to first call closedir() because I am trying to run a loop to open sub-directories when the while-loop that calls readdir() encounters them. And I assume that closing the current directory would cause me to lose the ability to ...
I have been trying to debug my code whenever I had free-time for the past day and a half and I don't know what is wrong with my code. When I add the close() function to a recursive call, the program gives me an invalid pointer. But when I remove the close() function call the program runs fine, except it does not do what it is supposed to...
Hello!
I am quite new to ruby but enjoying it so far quite immensely. There are some things that have given me some trouble and the following is no exception.
What I am trying to do here is create a sort of 'super-directory' by sub-classing 'Dir'. I've added a method called 'subdirs' that is designed to list the directory object's fi...
I'm using the following command in my web application to find all files in the current directory that contain the string foo (leaving out svn directories).
find . -not -ipath '.*svn*' -exec grep -H -E -o "foo" {} \; > grep_results.txt
How do I find out the files that doesn't contain the word foo?
...
I am in the need to create sub-folders within another website on the same server as the requesting website. How do I go about doing this?
I have tried Server.MapPath(path) but it is creating the folder within the current website.
I.E.:
websiteA on server 123 needs to create a directory within websiteB on server123.
Please help
...
Hi,
I got a list of files and folders using dirent & stat in C, but they are not in the order I want. I want it will list the directories first then files.
Ex:
.
..
[dir1]
[dir2]
[file1]
[file2]
Is there a way to do this with dirent? Or I dont want to manually order the output list.
Thanks.
...
I asked this on Super User, but someone suggested that I take it here because there are many more R experts.
The question:
I have to keep navigating to my directory when I go to File > Change dir..., which is particularly annoying.
Does anyone know how to make R remember the previously used directory?
...
I have 2 DirectoryInfo objects and want to check if they are pointing to the same directory. Besides comparing their Fullname, are there any other better ways to do this? Please disregard the case of links.
Here's what I have.
DirectoryInfo di1 = new DirectoryInfo(@"c:\temp");
DirectoryInfo di2 = new DirectoryInfo(@"C:\TEMP");
if (d...
Hi All,
Is it possible, if I change my default mysql data directory to other. But, will I be able to access the databases from old location.
any inputs will be a great help.
Thanks in advance
Regards,
Manasi
...
I'm trying to run Octave from within emacs (I'm mostly a beginner at both but have the hang of emacs shortcuts now). When I try run-octave as suggested here, I get the message.
Searching for file, no such file or directory, octave
Disclaimer: I'm using Windows Vista.
Octave is in c:\Octave...
the emacs default directory is
c:\use...
I am trying to find a way to determine the total and available disk space in an arbitrary folder from a .NET app. By "total disk space" and "available disk space" in a folder I refer to the total and available disk space that this folder would report if you performed a "dir" command on it, that is, the total and available disk space of t...
Most open source wiki and CMS engines host user-contributed themes/plugins in directories whose code, strikingly, is not itself released as open source software. Possibly the best example is WordPress' own plugin/theme directory, offering support for one-click plugin installation as well as plugin metadata, screenshots, changelogs, syste...
Hi, I'm making an HTTP server and when I get the path of the file they request I open it with the following:
returned_file = fopen(path, "r");
this (contrary to what I would think) succeeds even if the path is a directory. Is there an easy way to check if the returned_file stream is a directory instead of a file?
...
I have a script called foo.R that includes another script other.R, which is in the same directory:
#!/usr/bin/env Rscript
print("Hello")
source("other.R")
But I want R to find that other.R no matter what the current working directory.
In other words, foo.R needs to know its own path. How can I do that?
...
Let:
Folder to rename
c:\temp\Torename
to:
c:\temp\ToRename
Directory.Move does not work because the folder(:\temp\Torename) already exist.
I am looking for a solution that does not involve creating a temp folder.
I have this solution in place:
Move to a temp folder (unique name) eg c:\temp\TorenameTemp
Move from temp folder to new fol...
I'm looking for existing ideas / solutions to the problem of finding differences between two directories. Specifically how to identify files that might have been changed, renamed and moved.
A short list of things I've considered:
try to pair up files missing in dir A
with new files in dir b by using some
heuristic such as 75% match in...
Hi,
I am looking for a vb script that would list the folders and subfolders from a directory, and output it to excel so that i could open the folders via hyperlinks.
I am trying to create a sort of directory index that collates about 100 parent folders from 2 directories located on 2 different servers. Some parent folders have up to ...
The ClassLoader doesn't find me the file. It throws a:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: java.io.FileNotFoundException:
I was trying to do the follwoing:
TransformerFactory.newInstance().newTransformer(new StreamSource("C:\\dev\\workspace\\test1\\a#b\\Browser-Email....
Currently I am in my installing directory say c:\Program File\My installer.I have to execute a demo.bat file that is stored at some other location say c:\Program Files\Temp\example.bat,which I have to go at that location and execute coz my example.bat has some support files that are only stored in Temp folder.
My question is how can I c...
Hey all, this is my first time recently trying to get into the file and os part of Python. I am trying to search a directory then find all sub directories. If the directory has no folders, add all the files to a list. And organize them all by dict.
So for instance a tree could look like this
Starting Path
Dir 1
Subdir 1
Subdir 2
Sub...