folder

How to create a directory/folder by php?

When I create a category in my CMS, I want to create its directory/folder in an image directory. Can I create a directory or folder with php? Can anyone tell me how please? ...

Generating textual representation of directory contents

I'm looking for a script to generate the graphical-ish textual representations of directory structures that you see around. Something that I can run like this: james@computer:/.../basedir$ listdir . basedir |-firstsubdir | |-file | `-subsubdir | |-file1 | |-file2 | |-file3 | `-file4 `-secondsubdir james@computer:/.../basedir$ ...

TOpenDialog And Spaces

I have a project on Lazarus that I want to compile a source using gcc, for this I have a TOpenDialog called OpenDialog1 and a TProcess called AProcess. I call gcc with this code: procedure TFormMain.btCompileClick(Sender: TObject); begin if OpenDialog1.Execute then begin AProcess := TProcess.Create(nil); try AProcess....

fast folder size calculation in Python on Windows

I am looking for a fast way to calculate the size of a folder in Python on Windows. This is what I have so far: def get_dir_size(path): total_size = 0 if platform.system() == 'Windows': try: items = win32file.FindFilesW(path + '\\*') except Exception, err: return 0 # Add the size or perform recursion on fold...

Webpages cannot access folders. (IIS)

Hi there, What setting must I change under IIS to allow access to the folders? I am looking for that settings for hours, nothing found. It seems like it is giving a 403 error when I tried to access the folder. PS, I am only using localhost. Regards ...

Can anyone help me with setting folder permissions in IIS via an asp page?

I can create the folder, but I need to set the execute permissions to none/false for the folder named files. I have tried several examples on the net and none work correctly. Doing this manually in IIS is not an option, it must be done dynamically when the folder is created. Here is what I use to create the folders: set fso = Server.Cr...

How to set a custom Icon of an Outlook folder?

Is there any way to set a custom Icon of an Outlook folder or subfolder using Outlook object model? I am using 2007 and C# Thanks, ...

iphone: relative paths to local file?

Using MontoTouch for .NET C# iPhone development. (though should not matter) In the iPhoneSimulator, I use UIImage.FromFile (@"images/Bahai.png"); to get the Bahai.png from the images folder. However, when I run it in debug mode on my iTouch, the function returns a null. Only if I put the image file in the root does it work in the iTou...

Batch-file for finding the current folder and running a cmd-line with this path?

hi, I would like to have some kind of starter-batch for my *.jar file, but therefore I need the current folder path. How do I create a batch that can get the folder path, the batch and the jar files are in and then using this path for the jar-command in the command-line? Thank you in advance for any hint! Andreas ...

Search for a file using Javascript

Hi, I am creating a Search functionality program, which searches a file mentioned by the user on a folder present in a Network folder through File Scripting Object. The code works fine but the problem is that, when it searches the file on the Network folder the entire HTML page gets hanged and nothing is displayed till the code has fin...

Create subfolder in NSDocumentDirectory

hello, I just wanted to know is it's possible to create a subfolder in the NSDocumentDirectory and write data into that created folder, like: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *dirPath =[[paths objectAtIndex:0] stringAppendingPathComponent:@"TestFolder"]; NSS...

Get full directory contents with AppleScript

I need to get the entire (visible) contents of a folder and its subfolders as a list. Is this possible? ...

How to parse a folder path with spaces in C code

Hello, I'm using this simple C code: char * command = NULL; sprintf (command, "ls %s", folderpath); system(command); The problem is when the folder name has a space in it... I know that in Unix I need to add a "\", for example ls my\ folder\ name How can I get around this ? Thank you! ...

Adding file to Documents Directory (or elsewhere)?

Hello, I want to initialize my app with a small sqlite3 DB. I tried to put it in the Documents directory, but sometimes it copies it with zero size and sometimes it doesnot copy it at at all. How sholud I initialize my app with a DB full of info? Thankyou ...

Size of folder or file

How can I retrieve size of folder or file in java ? ...

How to get the order of files/dirs in the Explorer?

I am programming in C++, Windows I wonder if I can get the order of files in a certain folder. the order of FileFind seems by alphabetic order. For example. I can drag folders/files in a folder. and if I open it again, the order will remain. I wish I can get this order. Many Thanks! Sorry for not stating my question clear enough. I tho...

PHP delete the contents of a directory

Hello, How do I do that? Is there any method provided by kohana 3? ...

In Wix, how would you create a dialog to choose the name of a subfolder of the main application directory?

Hello, I am developing a MSI installer by using WIX. The main program installs to [APPLICATIONFOLDER]. I use the InstallDirDlg to set the directory of this without any issues. I'd like to display a custom dialogue based on the InstallDirDlg to specify a directory to install a particular component. I'd like to set the default direct...

How to check contents of a folder using Python

How can you check the contents of a file with python, and then copy a file from the same folder and move it to a new location? I have Python 3.1 but i can just as easily port to 2.6 thank you! ...

Check if path is folder/bundle/alias in ObjC.

Hi, I come from the AppleScript land and there we use alias of (info for thePath) package folder of (info for thePath) folder of (info for thePath) to see if a path is either of the above. But I can't seem to find out how to do it in ObjC/Cocoa. I'm pretty sure it's quite easy but I fail to find any info about it. Thanks... ...