--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RefactoringRope/RopeUtilities.py Sun Oct 13 15:49:43 2024 +0200 @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2024 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing some utility functions. +""" + +################################################################################ +## Functions for backward compatibility for eric < 24.01 +################################################################################ + + +def isRemoteFileName(fileName): + """ + Function to check, if the given file name is a remote file name. + + @param fileName file name to be checked + @type str + @return flag indicating a remote file name + @rtype bool + """ + return fileName.startswith(("remote:", "remote#"))