Question: I have a txt file, in which in each line i have the path of files and folders i want to segregate into one place.

The list is something like this in my list.txt file.
Each entry starts off on a new line.

```
 C:\xxx\xxy
 C:\abc\def\ghi.pdf

```

and my destination folder is c:\users\mr\_a\dest

**I want to :**

**1. move the directory `xxy` and all its files and subfolders to `dest`**

**2. move `ghi.pdf` file to `dest`.**

Do the same for other entries in the `list.txt` file.
So that my `dest` directory would look like:

```
dest\xxy
dest\ghi.pdf

```

I looked into `shutil` but am not still sure which function to use.
It says that the `destination` directory shouldn't be already existing, but in my case its not so. I'm getting confused which methods to use.
Please also mention if the methods you mention are safe (I don't want any nasty cut-n-paste where bits of my files may go missing etc)

*What I'm asking is: What methods to use to accomplish what I need to do here?*

Edit: And I use Windows, not Linux or any Unix system

Answer: 
Use a short delay to apply streetAddress

```
setTimeout(function(){$('#address').val(streetAddress);},50);

```
The above solution works great to autocomplete individual address fields. Here's an implementation with options to bias the results, however I'm having problems using bounds to bias the results of the autocomplete field. Here's my [jsFiddle](http://jsfiddle.net/jmhGS/22/). 

```
var defaultBounds = new google.maps.LatLngBounds(
    new google.maps.LatLng(33.89028890,-117.5617340),
    new google.maps.LatLng(33.7706850,-117.6639850)
);

var updateAddress = {
    autocomplete: new google.maps.places.Autocomplete($("#address")[0], { 
        bounds: defaultBounds,
        types: ['geocode'],
        componentRestrictions: {country: 'us'}
    }),            
    event: function(){
        var self = this;    
        google.maps.event.addListener(self.autocomplete, 'place_changed', function() {
            var place = self.autocomplete.getPlace(),
                address = place.address_components,
                streetAddress = '',
                suburb = '',
                state = '',
                zip = '',
                country = '';

            for (var i = 0; i < address.length; i++) {
                var addressType = address[i].types[0];

                if (addressType == 'subpremise') {
                    streetAddress += address[i].long_name + '/';
                }
                if (addressType == 'street_number') {
                    streetAddress += address[i].long_name + ' ';
                }
                if (address[i].types[0] == 'route') {
                    streetAddress += address[i].long_name;
                }
                if (addressType == 'locality') {
                    suburb = address[i].long_name;
                }
                if (addressType == 'administrative_area_level_1') {
                    state = address[i].long_name;
                }
                if (addressType == 'postal_code') {
                    zip = address[i].long_name;
                }
                if (addressType == 'country') {
                    country = address[i].long_name;
                }
            }

            // update the textboxes
            setTimeout(function(){$('#address').val(streetAddress);},50);
            $('#suburb').val(suburb);
            $('#state').val(state);
            $('#zip').val(zip);
        });

    }
};

updateAddress.event();

```