93f43d928860a345d712a07428af3170a34facb9 chmalee Fri Apr 5 12:33:42 2024 -0700 Make web accessible user directory link available at start time. Added a symlink to upload directory in /usr/local/apache diff --git src/hg/inc/userdata.h src/hg/inc/userdata.h index ba05327..d90698d 100644 --- src/hg/inc/userdata.h +++ src/hg/inc/userdata.h @@ -2,30 +2,35 @@ /* Copyright (C) 2014 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #ifndef USERDATA_H #define USERDATA_H struct userFiles { char *userName; struct fileInfo *file; // list of files for this user }; char *getUserName(); +//TODO: this should probably come from hg.conf: +#define HUB_SPACE_URL "https://hgwdev.gi.ucsc.edu/hubspace" +char *webDataDir(char *userName); +/* Return a web accesible path to the userDataDir, this is different from the full path tusd uses */ + char *getDataDir(char *userName); /* Return the full path to the user specific data directory, can be configured via hg.conf * on hgwdev, this is /data/apache/userdata/userStore/hash/userName/ * on the RR, this is /userdata/userStore/hash/userName/ */ char *prefixUserFile(char *userName, char *fname); /* Allocate a new string that contains the full per-user path to fname, NULL otherwise */ void removeFileForUser(char *fname, char *userName); /* Remove a file for this user if it exists */ struct userFiles *listFilesForUser(char *userName); /* Get all the files for a particular user */ long long checkUserQuota(char *userName);