I'm trying to write program to work as programmable directory, in other words: User, or other systems open that directory and read/write files or dirs. I try to create program to cache most used files in memory (less I/O to HDD), but right now I don't know how to achive that. There are probably some docs about this but I can't find them....
Say I put an executable tcsh file in /path/to/my_script.csh
and my current directory is anywhere, for example I'm in /path
So I type to/my_script.csh
I want to have a line in my_script.csh that will return "/path/to/my_script.csh" - like ruby's
__FILE__
...
I work for an ISP and I have a server with thousands of users 10MB of free storage. They get this free storage with every e-mail account they have with us. An example of a users storage address: http://users.example.com/~username/
One problem I can see is scanning the server for user names to see what accounts are available, basically g...
One-Liner to list TXT-files.
import java.io.File;
import java.io.FilenameFilter;
...
files = dir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.toLowerCase().endsWith(".txt");
}
}
);
Source.
Is there an one-liner to list dirs in...
I'm trying to implement my own version of the 'cd' command that presents the user with a list of hard-coded directories to choose from, and the user has to enter a number corresponding to an entry in the list. The program, named my_cd.py for now, should then effectively 'cd' the user to the chosen directory. Example of how this should wo...
I added a new subdir within my git respository:
git add feeds
Then commited this and pushed it up to GitHub but it seems as though I've commited a symlink / shortcut but not the actual directory and files within.
See here: http://github.com/G4EGK/RSS-Reader
Any idea what 'feeds' is?
I'd like to remove that and correctly add my file...
Hi,
I have a question about getting DLL's directory on Windows system.
The situation is like this :
I have a DLL and an EXE file. The exe file must load the DLL to run.
These 2 modules are in different directories.
Moreover, the directory of the DLL is changeable.
Now I have to get the directory of the DLL in "run time".
How could I ...
Hello All,
when you do an "ssh second_machine" you are able to connect to second_machine on your home directory
But usually i am working in my_machine in directory with very long path, and i want to connect to second_machine and move to my working directory right away. So everytime i have to:
ssh second_machine
cd /very/long/path...
how can i delete a folder using python script?and what are the return values??
...
Hello,
I have:
$page_file_temp = $_SERVER["PHP_SELF"];
which will output: /templates/somename/index.php
I want to extract from that path only "/templates/somename/"
How can I do it?
Thanks!
...
I am using the following code to authenticate a user using Active Directory.
But when I disable a user from AD, the change is not immediately reflected and the authentication still succeeds for some time after the disable. Can I force active directory updates through code? Thanks
DirectoryEntry entry = null;
try
{
entry = new Direct...
I find myself writing file and directory utility functions all the time, and I was wondering if there is good file and directory library that already implements a more extensive set than available by default in System.IO. The kind of functions I'm looking for is things like:
public static void GetTemporaryDirectory()
{
string tempD...
Hi,
I am trying to redirect links to domain.com/tag/* to domain.com/blog/tag/*
(where * is the actual tag name - eg music so domain.com/tag/music would redirect to domain.com/blog/tag/music)
I have been trying but I just can't wrap my head around it.
Any help would be appreciated.
Thanks
...
I have a "project" directory which has an .acignore file containing:
out/*
The "project" directory contains the checked-in "out" directory. But i want to ignore anything in the "out" directory tree.
The above doesn't seem to work. What's the right syntax?
Thanks.
...
How to find all files in directory? I have HTML page in some directory. Using JavaScript I want to get all existing files in some subdirectory ( get all file names or relative links to them, on a local machine)
...
How to create a sub directory in a blob container
for example,
in my blob container http://veda.blob.core.windows.net/document/
If I store some files it will be
http://veda.blob.core.windows.net/document/1.txt
http://veda.blob.core.windows.net/document/2.txt
Now, how to create a sub directory
http://veda.blob.core.windo...
How do I check if a directory exist on the sdcard in android?
...
Hi,
I have a problem on this code bellow, here I'm trying to Delete a Folder (Album ) Which has so many pictures. I have set the Album from image from a different folder (tempFolder) and i have used a third party dll which just take the ImageFolderPath to show the images on a thikbox popup.
My problem is this when ever I'm t...
I am trying to write a simple program, preferably in C, that will watch a given directory. Whenever a process accesses that directory, I just want to print out the name of that process. It seems simple, but I am coming up short for solutions on MSDN. Does anyone know which library calls I will need for this, or any helpful advice? I have...
Hi all,
I'm trying to use the directory_map('source directory',false) function to scan through user uploaded folders/files. It works and spit out the result in a multilevel array format.
I wouldn't know how deep is the multi level array would be. How do I iterate the array and display it in a readable format (e.g. in html (ol/ul) tags)...