mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-11-23 23:03:09 +01:00
19 lines
357 B
Go
19 lines
357 B
Go
package backend
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func GetDefaultDownloadPath() string {
|
|
// Get user's home directory
|
|
homeDir, err := os.UserHomeDir()
|
|
if err != nil {
|
|
// Fallback to Public Pictures if can't get home dir
|
|
return "C:\\Users\\Public\\Pictures"
|
|
}
|
|
|
|
// Return path to user's Pictures folder
|
|
return filepath.Join(homeDir, "Pictures")
|
|
}
|