Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:394:    SETUID_NT("Statting file");       /* No security currently in this function */    fs = file_stat(f);    privs = 0;    if(!stat_cache) return fs;    cache_set("stat_cache", f, ({fs}));    return fs;   }    + //! Normalize DAVLock path identifier. + string resource_id(string path, RequestID|int(0..0) id) + { +  if ((< "Darwin", "Win32" >)[uname()->sysname]) { +  return ::resource_id(lower_case(path), id); +  } +  return ::resource_id(path, id); + } +    //! Convert to filesystem encoding.   //!   //! @note   //! Note that the @expr{"iso-8859-1"@} encoding will perform   //! conversion to utf-8 for wide strings OSes other than NT.   string encode_path( string p )   {    if( path_encoding != "iso-8859-1" )    p = Locale.Charset.encoder( path_encoding )->feed( p )->drain();   #ifndef __NT__