14 lines
240 B
Go
14 lines
240 B
Go
|
|
package media
|
||
|
|
|
||
|
|
import (
|
||
|
|
"os"
|
||
|
|
"path/filepath"
|
||
|
|
)
|
||
|
|
|
||
|
|
const TempDirName = "picoclaw_media"
|
||
|
|
|
||
|
|
// TempDir returns the shared temporary directory used for downloaded media.
|
||
|
|
func TempDir() string {
|
||
|
|
return filepath.Join(os.TempDir(), TempDirName)
|
||
|
|
}
|