Cheese.FileUtil¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
unused |
r |
Class Details¶
- class Cheese.FileUtil(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Use the accessor functions below.
- classmethod new()¶
- Returns:
a new
Cheese.FileUtil
- Return type:
Create a new
Cheese.FileUtil
object.
- get_new_media_filename(mode)¶
- Parameters:
mode (
Cheese.MediaMode
) – the type of media to create a filename for- Returns:
a new filename
- Return type:
Creates a filename for one of the three media types: photo, photo burst or video. If a filename for a photo burst image was previously created, this function increments the burst count automatically. To start a new burst, first call
Cheese.FileUtil.reset_burst
().
- get_photo_path()¶
- Returns:
the Cheese photo path
- Return type:
Get the path where Cheese photo files are stored.
- get_video_path()¶
- Returns:
the Cheese video path
- Return type:
Get the path where Cheese video files are stored.
- reset_burst()¶
Resets the burst counter, so that calling
Cheese.FileUtil.get_new_media_filename
() with a photo burst starts a new burst of photos.