﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
825	Change the behaviour of DirMove()	MrCreatoR <mscreator@…>		"Hi,

I found that DirMove() having problem (limitation?) when trying to move directory with overwrite flag.

Let's say we want to move «C:\Source» to «C:\Dest» and overwrite all existing files & folders, source dir includes some files and folders, and also destination dir having files and folders in it. Now we trying to move:


{{{
DirMove(""C:\Source"", ""C:\Dest"", 1)
}}}

What we get, is that «Source» directory moved to «C:\Dest\», and not as a content, but as whole root folder.

For now, the only way to move the '''content''' of «Source» directory, is to copy it first, and then delete the source, like this:

{{{
DirCopy(""C:\Source"", ""C:\Dest"", 1)
DirRemove(""C:\Source"")
}}}

but it's take more time, and more operations.

So i only proposing to change the behaviout of DirMove; if we use 1 as third parameter (overwrite files), just move the content of the source directory, if users want to put it inside as a folder, they just do this:

{{{
DirMove(""C:\Source"", ""C:\Dest\Source"", 1)
}}}


'''P.S'''
And i know about the [http://www.autoitscript.com/autoit3/docs/functions/DirMove.htm note] in help file, i just think that this is wrong behaviour."	Feature Request	closed		AutoIt		None	Rejected	DirMove Overwrite	
