use async_session::{Result, Session, SessionStore};
use anyhow::anyhow;
use async_trait::async_trait;
use std::{
fs,
path::Path,
};
use walkdir::{DirEntry, WalkDir};
use binascii::bin2hex;
#[allow(unused)]
fn is_hidden(entry: &DirEntry) -> bool {
entry.file_name()
.to_str()
.map(|s| s.starts_with("."))
.unwrap_or(false)
}
#[derive(Debug, Clone)]
pub struct FileStore {
pub sess_path: String,
pub ses_file: String,
}
#[async_trait]
impl SessionStore for FileStore {
async fn load_session(&self, cookie_value: String) -> Result