Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.Utils/FilePathParser.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Utils/FilePathParser.cs82
1 files changed, 0 insertions, 82 deletions
diff --git a/mcs/class/System.Web/System.Web.Utils/FilePathParser.cs b/mcs/class/System.Web/System.Web.Utils/FilePathParser.cs
deleted file mode 100644
index 25bd7740a98..00000000000
--- a/mcs/class/System.Web/System.Web.Utils/FilePathParser.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * Namespace: System.Web.Utils
- * Class: FilePathParser
- *
- * Author: Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
- * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
- * Implementation: yes
- * Status: ??%
- *
- * (C) Gaurav Vaish (2001)
- */
-using System.IO;
-
-namespace System.Web.Utils
-{
- internal class FilePathParser
- {
- private static char[] pathSeparators = {
- Path.DirectorySeparatorChar,
- Path.AltDirectorySeparatorChar
- };
-
- private string dirName;
- private string fileName;
- private string shortDirName;
- private string shortFileName;
-
- private bool exists;
-
- [MonoTODO]
- public FilePathParser(string path, bool isFile, bool getShortNames)
- {
- path = path.Trim();
- if(Path.GetPathRoot(path).Length < path.Length)
- {
- path = path.TrimEnd(pathSeparators);
- }
- if(!isFile)
- {
- dirName = GetBaseDirOrRoot(path);
- } else
- {
- dirName = path;
- }
- if(getShortNames)
- {
- if(!Directory.Exists(dirName))
- {
- dirName = null;
- return;
- }
- shortDirName = GetShortPathName(dirName);
- if(shortDirName==null)
- {
- dirName = null;
- return;
- }
- if(shortDirName == dirName)
- {
- shortDirName = null;
- } else
- {
- throw new NotImplementedException();
- }
- }
- }
-
- public static string GetBaseDirOrRoot(string file)
- {
- string bDir = Path.GetDirectoryName(file);
- return ( bDir!=null ? bDir : Path.GetPathRoot(file));
- }
-
- [MonoTODO("Native_Call_Required")]
- public static string GetShortPathName(string path)
- {
- //TODO: Native calls required, it's in kernel32.dll for windows
- throw new NotImplementedException();
- }
- }
-}