folder

where do i put html files in my web-app folder for a lift project with maven?

I'm new to Lift framework for scala. For some reason, index.html resides in the web-app directory, and when I start up jetty, http://localhost:8080/ will point to that index.html file just fine. However, if I put a login.html file in the same folder as the index.html, and then go http://localhost:8080/login, Lift does not serve the file....

Getting a directory name from a filename

I have a filename (C:\folder\foo.txt) and I need to retrieve the folder name (C:\folder) in unmanaged C++. In C# I would do something like this: string folder = new FileInfo("C:\folder\foo.txt").DirectoryName; Is there a function that can be used in unmanaged C++ to extract the path from the filename? ...

How to change the default project directory (folder) in Netbeans 6.9 ?

How to change the default project directory in Netbeans 6.9 for Java SE\ME\EE? ...

incremental backup of folder in linux whilst retaining attributes/ownership

I'm trying to backup a folder (e.g) /web/sites to /backups/websites and retain attributes, etc. cp -Rp retains the information, yet isn't incremental rsync -va seems to be great for incremental yet doesnt retain the attr/owner Is it possible to tar, and pipe it through and untar whilst retaining attr/owner, if so, how can I do this? ...

Vim change configuration in folder viewing mode

When I enter a folder in vim by pressing gf while over a path, I enter some kind of folder viewing mode. I don't have for instance, line numbers set in it automatically. How do i change the configuration for the folder viewing mode in Vim? ...

How to check if a string is a valid Windows directory/folder path?

Hello, I trying to check if the user-inputted string is a valid install destination, then check if it exists, and create it if not. My problem is with validating that the destination string is formatted properly. I am currently using IO.Directory.Exists( String path ) and works fine except when the user did not format the string proper...

Is there any reliable API to Get Windows Folder in Windows?

Is there any reliable API to Get Windows Folder in Windows in C++? I am using the following way, however it failed. BOOL CQUserInfoHelper::GetWindowsPath(CString& strWindowsPath) { TCHAR windowsPathTemp[MAX_PATH]; int nSize = MAX_PATH; ::GetWindowsDirectory( windowsPathTemp, nSize)...

How to read from env in Windows in c++

I want to get system folder in windows, by reading SystemRoot. How can I do it? many thanks! ...

Process incoming files in a directory

I want to make a Java program that monitors a directory continuously for a new file, and if a new file arrives, process it and then delete it. What is the best way to do this? ...

How to effectively copy, paste and display an entire Wordpress folder?

I always make make backups in the following way: project0.1, project0.2, and so on. I just started using Wordpress today and it seems like modyfing the root folder's name makes some elements display: Not Found (the CSS still the same). This happens when I copy and paste the root folder of my Wordpress and assign it another name. Which...

thunderbird how to apply a folder view to other folders (like evolution)

How does one save a 'view' in thunderbird and then have that applied to other folders (nested and not nested) ? a bit like evolution and outlook? For the life of me, i can't find this in my version: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5 thanks, ...

How to 301 root site to new folder but allow new website on root

Ok let me see if I can explain this easily I have a forum that was hosted as my home page on www.mysite.com respectively. It's well indexed and I'd hate to lose any ranking. Today I moved the entire root site from the root domain to www.mysite.com/forum to make way for our new CMS system which will now be the home page. (This is to he...

How can you find the most recently modified folder in a directory using Ruby?

How can you find the most recently modified folder (NOT A FILE) in a directory using Ruby? ...

Cross-platform compatible directory creation in C++

I need to dynamically create directory based on input filenames in C++ and it must be cross-platform compatible. I am also familiar with the boost library. The input to the directory creation function will be a string with the following prototype: void createDirectory (std::string name) Sample code would be much appreciated. ...

Is there any solution for Grails to select a folder like <input type="file"

is there a solution to select a folderpath as comfortable like the input-file tag? ...

Windows service connects to a server to download some files

There are three serves on the same zone. 172..*.** Suppose that their names are A,B and C The server A has a windows service, and it downloads the files from the server of C, in the folder of images. It used to give errors about access-denied then we assign full control to everyone on the folder of images on the server C. Then it was ...

Is it possible to make a folder in an SVN repository to point to a folder in another repository?

Hi Everyone, I'm currently working on a very small open source project for Maemo 5. (Namely Sticky Notes.) I would like to incorporate some stuff from the Hildon Extras project. It seems that they have no binary packages, just an SVN repository, and the developers who use it just copy-paste the sources from Hildon-Extras to their own r...

.htaccess for preventing direct access/linking to a folder

So I have this one folder that stores all the confidential excel files in it. I dont want people to be able to link/access to it directly, but I have a link on my web site that allows the enables authorized users to download their files from the data. This is what I have RewriteEngine on RewriteBase / RewriteCond %{HTTP_REFERER} !^$ R...

iPhone: Folder management

I've not found a answer to this question anywhere, but this seems like a typical problem: I have in my "Resources" Folder a XML File that my App needs to show some informations. But I have to check in my Server, if the server has a newer XML available, so I should replace my XML (in the resources folder) for this new one. How can I ach...

How do I open a folder from CD drive using VB.NET?

Hey, I'm trying to write a program that opens a folder from the CD disk when a button is clicked. The program will be run from a CD, and aims to open a certain folder. However, I can't use "shell "explorer...."" because the drive letter will change between different computers. Is there a way to open the folder straight from the CD in VB...