Class TempOwner
- Namespace
- Archiver.Core.IO
- Assembly
- Archiver.Core.dll
T-F263/T-F312: the one owner of the names of Pakko's temporary files and folders. A name holds its owner as "m<machine>-<pid>-<start ticks>" (the start time tells a reused process id apart). A run creates its names fresh and removes them itself; a sweep at the start of the next operation in the same folder removes what a killed run left.
public static class TempOwner
- Inheritance
-
TempOwner
- Inherited Members
Properties
CurrentTag
This process's owner tag.
public static string CurrentTag { get; }
Property Value
ProcessTag
"<pid>-<start ticks>" — v1.6.0's owner name, still used under %TEMP%, where the machine adds nothing and a v1.6.0 window would take a longer name for a dead owner's.
public static string ProcessTag { get; }
Property Value
Methods
IsRunningHere(string)
True when the process a bare tag names runs on this machine. Also reads v1.6.0's "<pid>-<start ticks>". A name that does not parse is a leftover and counts as gone; a process whose start time cannot be read counts as running, so nothing is deleted on a guess.
public static bool IsRunningHere(string tag)
Parameters
tagstring
Returns
NewName(string, string)
A new name owned by this process: prefix, tag, a unique part, suffix.
public static string NewName(string prefix, string suffix = "")