Overview
Comment:Parfois le fichier a déjà disparu !
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 076971cb89f92bc29efdcc725b1adf717e9a1192
User & Date: bohwaz on 2018-09-13 22:03:02
Other Links: branch diff | manifest | tags
Context
2018-09-13
22:06
Générer une erreur quand même quand la suppression échoue et que le fichier existe toujours check-in: 1bdf70a9d5 user: bohwaz tags: dev
22:03
Parfois le fichier a déjà disparu ! check-in: 076971cb89 user: bohwaz tags: dev
22:01
Ne pas faire d'erreur en cas de problème à la création, car des fois il y a des race conditions check-in: 3b0487da74 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Utils.php from [0a93ed5aae] to [df58911e4f].

389
390
391
392
393
394
395
396
397
398
399
400
401
402
403

        while ($file = $dir->read())
        {
            if ($file[0] != '.')
            {
            	if (file_exists($path . DIRECTORY_SEPARATOR . $file))
            	{
                	unlink($path . DIRECTORY_SEPARATOR . $file);
                }
            }
        }

        $dir->close();
        return true;
    }







|







389
390
391
392
393
394
395
396
397
398
399
400
401
402
403

        while ($file = $dir->read())
        {
            if ($file[0] != '.')
            {
            	if (file_exists($path . DIRECTORY_SEPARATOR . $file))
            	{
                	@unlink($path . DIRECTORY_SEPARATOR . $file);
                }
            }
        }

        $dir->close();
        return true;
    }