#10928: [Screenshot] Artwork folder is read-only (easy)
---------------------------------------+----------------------------
Reporter: diver | Owner: nobody
Type: bug | Status: reopened
Priority: normal | Milestone: R1
Component: Applications/Screenshot | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
---------------------------------------+----------------------------
Comment (by gbl08ma):
Replying to [comment:6 pulkomandy]:
Hi,
The patch looks good. But there are possible improvements:
1) From the coding guidelines:
{{{
Variables start with lowercase letters and use interCapsFormatting.
}}}
2) Testing that the directory exists is not enough. It could be a fileor a broken symlink, and in these cases the code below will fail anyway.
3) Creating a temporary BDirectory just for calling CreateDirectory withan absolute path is not very useful. You could use the C function