List Files Snippets

Java code example to list the Files or Subdirectories in a Directory

Java code for listing files or sub-directories in a directory

When developing applications that need to operate on files and directories it is a common task to, for example, get the list of all sub-directories for a given directory.

Iterate enumerative and associate array using for loop in php.

30 August, 2015   

Loads the contents of a dir an sorts them by the date of creation.

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

03 August, 2013   

ColdFusion code for upload files to directory

By default Symfony displays forms in tables, with each new input being a table row. If you want to display your forms more semantically with fieldsets and lists, Symfony has a list formatter built in. You can tell an individual form to display as a list using the code below.

20 June, 2013   

How to select between two dates using MySQL code

This function will not recurs subdirectories - it will only return a list of sub folder on the "first" level.

Two simple functions to read an write tab seperated files (like CSV files, etc).

Example code for merge sort of an integer list

20 October, 2012   

Create dynamic variables from a query or a list.

17 October, 2011   

Copying Folders With All Contents Including Other Folders. 2010 does not have a built in code to copy full folders with their contents but only files(one by one)!!! But you can do it by this code

An example of a simple double linked list using OOP techniques

16 April, 2011   

There are times when you need to split a large file into several smaller ones (for whatever the purpose is). The following two methods use Delphi TStream objects to break a file into several files with predefined size; and to merge those files back to the original.

27 August, 2012   

HTML code for Standard List Navigation

15 September, 2012   

This will perform the action of deleting many files.

A bug seems to occur when you add a negative margin to a list item in IE6. The background image applied to the list item gets repeated randomly and generally messes up. Add this little gem to your head to fix the problem. Remember to change the id tag to your own.

30 October, 2013   

Example code showing how to make an array of files you find