Modify

Opened 16 years ago

Closed 16 years ago

#1176 closed Bug (Fixed)

FileSetAttrib with recurse mode 1 not continue when file not found in subfolder

Reported by: MrCreatoR <mscreator@…> Owned by: J-Paul Mesnage
Milestone: 3.3.1.2 Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: FileSetAttrib, recursive, folder, file Cc:

Description

Hi,

The problem is that when we set attributes using recursive mode, and one of the files are missing in some subfolder, then FileSetAttrib does not continue to next files, it's just stops and return 0.

If Not FileSetAttrib(@ScriptDir & "\Test\test.txt", "+H", 1) Then
	MsgBox(4096, "Error", "Problem setting attributes.")
EndIf

Folders/files structure:

.\Test\test.txt
.\Test\Subfolder
.\Test\Subfolder\Subfolder\Test.txt

Now here for the last file «Test\Subfolder\Subfolder\Test.txt» the attributes are not set.

While the console attrib.exe program does not stops, it's set attributes for all the files it can (it skips the problematic files).

If it's not a bug and it's designed like that (why?), then i think at least this should be mentioned in the help file.

Thanks.

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.1.2
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.2

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.