2018-06-27 09:40:21 -04:00
|
|
|
/* Copyright (c) 2003-2004, Roger Dingledine
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 12:33:22 -05:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-06-27 09:40:21 -04:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
2018-07-01 20:22:55 -04:00
|
|
|
/**
|
|
|
|
* \file path.h
|
|
|
|
*
|
|
|
|
* \brief Header for path.c
|
|
|
|
**/
|
|
|
|
|
2018-06-27 09:40:21 -04:00
|
|
|
#ifndef TOR_PATH_H
|
|
|
|
#define TOR_PATH_H
|
|
|
|
|
|
|
|
#include "lib/cc/compat_compiler.h"
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define PATH_SEPARATOR "\\"
|
|
|
|
#else
|
|
|
|
#define PATH_SEPARATOR "/"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
char *get_unquoted_path(const char *path);
|
|
|
|
char *expand_filename(const char *filename);
|
|
|
|
int path_is_relative(const char *filename);
|
|
|
|
void clean_fname_for_stat(char *name);
|
|
|
|
int get_parent_directory(char *fname);
|
|
|
|
char *make_path_absolute(char *fname);
|
|
|
|
|
2019-06-05 09:33:35 -04:00
|
|
|
#endif /* !defined(TOR_PATH_H) */
|