Add #PB_FileSystem_Force flag to DeleteFile & CreateFile

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Wolf
Enthusiast
Enthusiast
Posts: 232
Joined: Sat Apr 03, 2004 12:00 pm
Location: S.T

Add #PB_FileSystem_Force flag to DeleteFile & CreateFile

Post by Wolf »

Hi

I think #PB_FileSystem_Force flag is miss in 3 FileSystem command...

DeleteFile( Filename$, #PB_FileSystem_Force) ; Force to delete ReadOnly files (Not removed by default)

CreateFile(#File, Filename$, #PB_FileSystem_Force) ; Force to open and replace already existed ReadOnly files (Not open by default)

OpenFile(#File, Filename$, #PB_FileSystem_Force) ; Force to Create file if doesn't exist Just when flag is used... ( Maybe i just want check an file status to see if it is inuse or free and don't need create file if doesn't exist... and another usage)